Sure you can, but the start_form_tag method expects the first hash to
contain url data, and the second hash to contain "options" -- html
attributes.

On 8/16/05, Jamal Hansen <jamal.hansen / gmail.com> wrote:
> On 8/16/05, Brock Weaver <brockweaver / gmail.com> wrote:
> 
> > I just stumbled across an intresting problem with passing two hashes
> > to a method -- I was trying to pass inline hashes and ruby
> > interpretted them as blocks. (Makes sense looking back).
> >
> > start_form_tag :action => 'blah', :class => 'css1'
> 
>   I'm a Ruby Nuby as well, but why would you pass 2 hashs? Couldn't you pass
> a single hash?
>  start_form_tag { :action => 'blah', :class => 'css1' }
>  Maybe use parens if necessary
>  start_form_tag({ :action => 'blah', :class => 'css1' })
>  -Jamal
> 
> 


-- 
Brock Weaver
http://www.circaware.com