-
the table is based on pluralizing your model. Recipe = recipes table.
This can all be configured through Active Record. As a beginner, I
wouldn’t worry about it yet. -
InstantRails has a config file that can be modified. However, one
thing at a time… Get comfortable writing rails apps using the built in
server. Then go learn InstantRails… It’s not necessary to learn the
language. Your rails application is going to determine the database you
use, not InstantRails.
3.Yup. You should buy the “Agile Web D. with Rails” book. It
covers login very well and really answers a lot of beginner (and
advanced) questions. Plus you’re supporting the development of Rails (in
a way).
As for PDF, though I’ve not done it, I know it’s possible and there are
those on the list who have had much success with it/
- Validation is easy in Rails.
In your Recipe model (recipe.rb) add this line after the class
declaration: (between ‘class Recipe’ and ‘end’
validates_presence_of :title
To validate the title field. There’s many other validators like
“validates_numericality_of” and others.
Since you’re doing JSP, you should be pretty comfortable with an API and
Rails has a great one at http://api.rubyonrails.com/
I hope this helps answer your questions. If you can remember that Rails
is much more than scaffolding and ‘magic’, you’ll start to love it and
you’ll be amazed every single day at what it can help you create.
Good luck!
-Brian H.