Tom, where is it that you want to replace low with params[:id]?
On Feb 5, 11:22 am, Tom Ha <[email protected]> wrote:
> Hi there,
>
> I have a n00b question regarding the correct code syntax:
>
> The aim is to have code that looks like this...
>
> ==========================
> if @user.low == true
> @low = false
> elsif @user.low == false
> @low = true
> end
>
> [...]
> ==========================
>
> ...where every "low" should be replaced by "params[:id]" (in order for
> "low" to be able to take other values, such as "medium" or "high").
>
> How do I have to write the syntax correctly in my controller?
>
> Thank you very much for your help!
> Tom
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---