additional params to an anchor

12 views
Skip to first unread message

Bob Sleys

unread,
Dec 29, 2011, 1:49:02 PM12/29/11
to hobo...@googlegroups.com
Ok apparently it's just not my day.  I guess I shouldn't expect much after staying up till 2am.

At any rate all I want to do is add an additional parameter to the query string of a link.  Per the book (beta 6) page 489 I should be able to do with with either params or query-params on an <a/> but neither work.

the following produces the currect link minus the addtional paramater

<if with="&@reports">
   <collection>
      <a query-params="dataid=@project.to_param"/>
   </collection>
</if>

Now if I change the link to 

  <a params="t=test"/>

I get the following error

undefined method `merge' for "t=test":String

and if I change the link to 

<a query-params="t=test"/>

Nothing changes.

Bob

Bryan Larsen

unread,
Dec 29, 2011, 1:57:57 PM12/29/11
to hobo...@googlegroups.com
It's probably expecting a Ruby hash. Try:

<a params="&{:t => 'test'}">

Bryan

> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/J2YNVmZvI7cJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Reply all
Reply to author
Forward
0 new messages