Variable

hi

if I got 2 variables for example:
http://192.168.10.101:3001/user/show_hours/2?permission=SA
|| || | ||
controler action id variable

but ‘id’ and ‘permission’ are variables…

so how to put in my code to display in
show_hours.rhtml the second variable ‘permission’ ?
I was trying like <%= @permission %> but it doesn’t work

thanks work help

On Sat, Jan 07, 2006 at 07:52:59AM +0900, misiek wrote:

if I got 2 variables for example:
http://192.168.10.101:3001/user/show_hours/2?permission=SA
|| || | ||
controler action id variable

but ‘id’ and ‘permission’ are variables…

so how to put in my code to display in
show_hours.rhtml the second variable ‘permission’ ?
I was trying like <%= @permission %> but it doesn’t work

<%= @params[‘permission’] %>

Edward F. wrote:

show_hours.rhtml the second variable ‘permission’ ?
I was trying like <%= @permission %> but it doesn’t work

<%= @params[‘permission’] %>

thanks but it doesn’t work too ! hmmm?

On 06/01/06, misiek [email protected] wrote:

hi

if I got 2 variables for example:
http://192.168.10.101:3001/user/show_hours/2?permission=SA
|| || | ||
controler action id variable

but ‘id’ and ‘permission’ are variables…

You probably want to ask this on the Rails mailing list:

http://lists.rubyonrails.org/mailman/listinfo/rails

-austin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs