[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

variable

misiek

1/6/2006 10:35:00 PM

hi

if I got 2 variables for example:
http://192.168.10.101:3001/user/show_hours/2?per...
|| || | ||
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
3 Answers

Edward Faulkner

1/6/2006 11:09:00 PM

0

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?per...
> || || | ||
> 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'] %>

Austin Ziegler

1/6/2006 11:12:00 PM

0

On 06/01/06, misiek <michaelaugustyniak@gazeta.pl> wrote:
> hi
>
> if I got 2 variables for example:
> http://192.168.10.101:3001/user/show_hours/2?per...
> || || | ||
> 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/list...

-austin
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca


misiek

1/7/2006 3:54:00 AM

0

Edward Faulkner wrote:
> 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?per...
>> || || | ||
>> 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'] %>
>
thanks but it doesn't work too ! hmmm?