On Thu, 26 Mar 2009 18:05:54 +0100
Jose vicente Ribera pellicer <[email protected]> wrote:
> I don“t know PHP, and I understant this lines:
> <?php
> if(isset($_POST)): echo("Value is: ".$_POST["input-rating"]); endif
> ?>
>
> Anybody that works with PHP too can says me the equivalence for rails??
Post parameters are available in the view via the params method. Are you
seriously trying to put PHP code in your views? Or do you want to port the php
to ruby?
SH
--
Starr Horne
Check out my Helpdesk RailsKit: http://railskits.com/helpdesk/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---