Matt Wildig
unread,Jul 10, 2012, 2:20:06 PM7/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ha...@googlegroups.com
I think you're just missing a `name` attribute on your select, instead of or in addition to the id.
On 10 Jul 2012, at 01:12, Unix Guru wrote:
>
> @@ select
>
> %form{:action => "/select", :method => 'post'}
> %select#params
> - ['one', 'two', 'three'].each do |i|
> %option{:value => i}= i
> %input(type='submit')
I'd suggest using a name other than `params` too, as this clashes with the name of the Sinatra method:
%form{:action => "/select", :method => 'post'}
%select#my-select{:name => 'my-select'}
...
Also, watch out for your formatting. It might just be getting mangled in the email, but you need to consistently use the same about of indentation (you sometimes use one space, sometimes two), and the `%input` tag should be at the same level as the `%select`.
Matt