2009/12/18 adrian_m <[email protected]>:
> Hello all,
>
> I've started to write my first Rails application, using rails 2.3.5
> and some tutorials found on the net (for example Four Days on
> Rails) .  I've just discovered that the scaffolding information found
> in most (older) tutorials are completely unusable with recent rails
> versions .
>
> This is my situation :
> - i have a PostgreSQL database with 3 tables (created manually with my
> own sql scripts)
> - i have used 'ruby script/generate model'  , and the generated models
> seem to be ok
> - now i want to have the basic controller + views generated for each
> of the tables
>
> I have used 'ruby script/generator scaffold MyModelName'  and it has
> indeed generated some files.
> But:  the views contain no fields/columns !
>
>
> Please give me some hint/advice so that i can go on :   how can I
> obtain some complete controller+views  for each model    (without
> specifying them manually as arguments) ?

Not answering your question directly but if you have not already done
so I would suggest having a look at the rails guides at
http://guides.rubyonrails.org/ particularly Getting Started,
ActiveRecord Associations, and Debugging.The railscasts are also
excellent.  Also the free Rails course at
http://www.buildingwebapps.com/podcasts is supposed to be good.

By the time you have worked through that lot I am sure you will answer
your own questions, and probably be back here answering those from
others. :)

Colin

--

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.


Reply via email to