Passing n of Parameters in rhodes

70 views
Skip to first unread message

Poornima

unread,
Feb 22, 2010, 8:12:54 AM2/22/10
to rhomobile
Hi,

I tried to pass n number of parameters like

<%=link_to "Add another task", :action => :new, :controller =>
"Task", :id => @list.object, :list_id => @list.list_id, :task_id =>
@list.task_id %>

but its failing when i check
puts @params it displays {} , whether passing multiple parameters wont
work or any mistake i had done.
please guide me with what to do.


C.Poornima.


Dmitry Moskalchuk

unread,
Feb 22, 2010, 9:18:22 AM2/22/10
to rhom...@googlegroups.com
Hi,

Which rhodes version you are using? And mobile platform?


Dmitry Moskalchuk

22.02.2010, в 16:12, Poornima написал(а):

> --
> You received this message because you are subscribed to the Google
> Groups "rhomobile" group.
> To post to this group, send email to rhom...@googlegroups.com.
> To unsubscribe from this group, send email to rhomobile+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en
> .
>

Adam Blum

unread,
Feb 22, 2010, 9:34:45 AM2/22/10
to rhom...@googlegroups.com, rhom...@googlegroups.com
Poornima,

Your debug statement should be

puts @params.inspect.to_s

Sent from my iPhone

On Feb 22, 2010, at 6:18 AM, Dmitry Moskalchuk <cry...@gmail.com>
wrote:

Brian Moore

unread,
Feb 22, 2010, 8:19:17 PM2/22/10
to rhom...@googlegroups.com
Passing parameters other than supported options is passed in as a separate hash as follows:

<%=link_to "Add another task", :action => :new, :controller => "Task", :id => @list.object , :query => { :list_id => @list.list_id, :task_id => @list.task_id } %>


Brian

Poornima

unread,
Feb 22, 2010, 11:59:56 PM2/22/10
to rhomobile
Thanks now its working.....

C.Poornima

Reply all
Reply to author
Forward
0 new messages