Get data from html form to ruby in Ruby on Rails

Posted by Maestro1024 on Stack Overflow See other posts from Stack Overflow or by Maestro1024
Published on 2010-05-22T22:57:41Z Indexed on 2010/05/22 23:00 UTC
Read the original article Hit count: 243

Filed under:

Get data from html form to ruby in Ruby on Rails

I have some html like this

<html>
<h1>Text to PDF</h1>
<textarea name="comments" cols="40" rows="5">
Enter your Text here...
</textarea><br>
<input type="submit" value="Submit" />
</form>
</body>
</html>

I want to give the value of the text into the controller for this page/view. How do I do this with rails?

I am new to rails, what is the mechanism for this? I don't need to write to the database just want to hand it to the controller. If there is a good tutorial for this sort of thing that would be great, I am not convince I am approaching this correctly.

© Stack Overflow or respective owner

Related posts about ruby-on-rails