I am running 0.13.1
Does the table matter whether is generates _Form?
Maybe I should just do a re-install? I tried the
Article admin generation and got the same effects.
Something about the _form nothing showing up.
--- "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org>
wrote:
> Hmmmm......
>
> Okay.... How about this:
> ruby script/generate scaffold Article admin
> model = capitalized. Controller = not
> capitalized...
>
>
>
> What does your articles table look like? And what
> version of Rails are
> you running (do ''gem list'')
>
>
>
>
> -----Original Message-----
> From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
> Behalf Of jonathan
> Mcintire
> Sent: Monday, November 21, 2005 11:42 AM
> To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> Subject: RE: [Rails] Scaffolding "Edit/New" error
>
>
> ruby script/generate scaffold Article Admin
>
> Seems pretty standard? I''m pretty new to Rails so
> I''m
> not sure why I''d be getting an error.
>
> --- "Hogan, Brian P."
<HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:
>
> > Scaffolding puts the form fields in that file. It
> > assumes that your
> > "new" and "edit" forms are going to be identical.
> > It''s a feature that
> > allows you to repeat code.
> >
> > What command did you use to create the scaffold?
> >
> >
> >
> > -----Original Message-----
> > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> >
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
> > Behalf Of jonathan
> > Mcintire
> > Sent: Monday, November 21, 2005 11:20 AM
> > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > Subject: RE: [Rails] Scaffolding "Edit/New" error
> >
> >
> > Yeah, that''s the thing I guess....Scaffolding
> isn''t
> > creating that file. And, I''m not sure what even is
> > CONTAINED in the file.
> >
> >
> > --- "Hogan, Brian P."
<HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:
> >
> > > That''s funny.... Usually that happens when
> there''s
> > > no file for the
> > > partial...
> > > Do you have a "_form.rhtml" file located in the
> > > right place?
> > >
> > > If your controller is "admin"
> > > Then you should have
> > > /views/admin/_form.rhtml
> > >
> > > Usually, scaffolding takes care of that for
> you...
> > >
> > >
> > > -----Original Message-----
> > > From:
rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > >
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
> > > Behalf Of jonathan
> > > Mcintire
> > > Sent: Monday, November 21, 2005 10:51 AM
> > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > > Subject: [Rails] Scaffolding "Edit/New" error
> > >
> > >
> > > I was trying to set up scaffolding, but when I
> go
> > to
> > > edit/new to add entries into my database. I get
> > this
> > > error
> > >
> > > No rhtml, rxml, or delegate template found for
> > > admin/_form
> > >
> > > 1: <h1>Editing article</h1>
> > > 2:
> > > 3: <%= start_form_tag :action =>
''update'', :id
> =>
> > > @article %>
> > > 4: <%= render_partial ''form'' %>
> > > 5: <%= submit_tag ''Edit'' %>
> > > 6: <%= end_form_tag %>
> > >
> > >
> > > Has anyone seen this error before? If I comment
> > out
> > > the "<%= render_partial ''form''
%>" line it goes
> to
> > > the
> > > edit action but nothing is displayed.
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Yahoo! FareChase: Search multiple travel sites
> in
> > > one click.
> > > http://farechase.yahoo.com
> > > _______________________________________________
> > > Rails mailing list
> > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > >
> >
> http://lists.rubyonrails.org/mailman/listinfo/rails
> > > _______________________________________________
> > > Rails mailing list
> > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > >
> >
> http://lists.rubyonrails.org/mailman/listinfo/rails
> > >
> >
> >
> >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors'' Choice 2005
> > http://mail.yahoo.com
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> >
> http://lists.rubyonrails.org/mailman/listinfo/rails
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> >
> http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>
>
>
>
>
>
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in
> one click.
> http://farechase.yahoo.com
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
__________________________________
Yahoo! Mail - PC Magazine Editors'' Choice 2005
http://mail.yahoo.com