#sidebar

  .widget
    %h3.fancy Buscador
    = form_tag search_path(what: 'posts'), method: 'get' do
      .input-append
        = text_field_tag :q, params[:q], placeholder: 'Buscar en el sitio', class: 'input-medium'
        = button_tag class: 'btn', type: 'button' do
          %i.icon-search

  .widget
    = render 'layouts/banners/b160x600'
  - cache [:archive, Post.last_updated], :expires_in => 2.days do
    .widget
      = render 'layouts/widgets/daily_archive'
    .widget
      = render 'layouts/widgets/monthly_archive'

  %h3.fancy Seguí a Venganzas del Pasado

  .widget
    - if Rails.env.production?
      = render 'layouts/widgets/facebook'
    - else
      = image_tag('http://placehold.it/220x440/&text=Facebook Like Box')

  .widget
    - if Rails.env.production?
      = render 'layouts/widgets/twitter'
    - else
      = image_tag('http://placehold.it/220x440/&text=Twitter Timeline')

#sidebar

  .widget
    %h3.fancy Buscador
    = form_tag search_path(what: 'posts'), method: 'get' do
      .input-append
        = text_field_tag :q, params[:q], placeholder: 'Buscar en el sitio', class: 'input-medium'
        = button_tag class: 'btn', type: 'submit' do
          %i.icon-search

  .widget
    = render 'layouts/banners/b160x600'
  - cache [:archive, Post.last_updated], :expires_in => 2.days do
    .widget
      = render 'layouts/widgets/daily_archive'
    .widget
      = render 'layouts/widgets/monthly_archive'

  %h3.fancy Seguí a Venganzas del Pasado

  .widget
    - if Rails.env.production?
      = render 'layouts/widgets/facebook'
    - else
      = image_tag('http://placehold.it/220x440/&text=Facebook Like Box')

  .widget
    - if Rails.env.production?
      = render 'layouts/widgets/twitter'
    - else
      = image_tag('http://placehold.it/220x440/&text=Twitter Timeline')

Fix search button to actually submit the form
Fix search button to actually submit the form
