This works great if used in a context (from a object/collection)
However I am getting an error if I try to create the link without an
object:

<h4><a action="index" params="&{'folder'=>'inbox'}">Inbox</a></h4>

NoMethodError in Messages#index

Showing app/views/messages/index.dryml where line #4 raised:
undefined method `reverse_reflection' for NilClass:Class




On Mar 14, 2:49 pm, Bryan Larsen <[email protected]> wrote:
> I just added this to the docs for params:
>
> Params are passed as a ruby hash.  Example:
>
>      params="&{id=>17, name=>'joe'}"
>
> Bryan
>
> atmorell wrote:
> > Hello,
>
> > I am having som problems finding the correct syntax for the <a> tag.
> > How do I use the params option to pass a variable to the index page?
>
> > <a action="index" params="inbox">Inbox</a>
> > <a action="index" params="sent">Sent</a>
> > <a action="index" params="trash">Trash</a>
>
> >  NoMethodError in Messages#index
>
> > Showing app/views/messages/index.dryml where line #4 raised:
>
> > undefined method `merge' for "trash":String
>
> > Best regards
> > Asbj rn Morell

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
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/hobousers?hl=en.

Reply via email to