I have this haml:

%p
  = link_to "New Location Item", new_location_item_path
  = form_tag location_items_path, :method => "get" do
    = select_tag :location_id, 
options_for_select(@location_parents.unshift(['All locations', 0]), 
params[:location_id]), :onchange => "this.form.submit();"

so i expect something like:

<p>
  <a href...
  <form...
    <select...
  </form>
</p>

but instead I get

<p>
  <a href...
</p>
<form...
  <select...
</form>
<p></p>

you can see the screenshot i attached...

<https://lh5.googleusercontent.com/_RM11lb0QaBY/TVWErobt1eI/AAAAAAAAAOc/vcrbA8AD6OQ/Screen%20shot%202011-02-11%20at%201.45.39%20PM.png>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to