Thanks Matt. That did the trick.
On Tuesday, July 10, 2012 11:20:06 AM UTC-7, Matt Wildig wrote:
>
> 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
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/haml/-/hrKdDrO16qAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.