hi,
to create a form without scaffold command sholud v write the same code in
all the files that is created when scaffold is used.
no idea on thread Mr.Colin..
i did it as follows
rake Courses -d mysql
set the pw in database.yml file
rake db:create:all
script/server
script/generate controller student
script/generate model information
in migrate file included the attributes name regno section percentage and
saved the file
not getting what next??????
On Fri, Jun 17, 2011 at 1:16 PM, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
> On 17 June 2011 08:08, Annapoorna R
<prapoorna.r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > hi...
> > how to create a form in rails without using a scaffold command?
>
> Has this question got anything to do with the subject line (Rails
> 3.0.7 and MySQL)? Please ask this again as a new posting with a
> meaningful subject. That way someone with an interest in the question
> is more likely to read it. The answer to your question, however, is
> to use form_for in the view file. Study the files generated by a
> scaffold command and just replicate this yourself. If you want
> further information please start a new thread.
>
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.