Kristian Mandrup
2010-Apr-15 01:47 UTC
Rails 3 beta3 app generator does not generate default stylesheet
I have just been following the updated 15 min blog tutorial by Yehuda http://www.railsdispatch.com/posts/rails-3-makes-life-better I noticed by browser outputs looked a bit weird. Then I discovered I had no stylesheet generated. Is this a known bug or what? Does someone have a link to the default stylesheet which should be generated? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Kristian Mandrup
2010-Apr-15 01:55 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
It turns out that Yehuda seems to have ''cheated'' a little with the screencast. The app needs the scaffold.css. http://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/stylesheets/templates/scaffold.css Is there a way to generate this stylesheet without scaffolding? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Kristian Mandrup
2010-Apr-15 02:02 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
Also using <%= form.error_messages %> to display error messages, only results in this output: <div class="fieldWithErrors"><input id="post_title" name="post[title]" size="30" type="text" value="" /></div> Where is the bullet list of errors? Strange! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Kristian Mandrup
2010-Apr-15 02:06 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
OK, the tutorial must have been for beta2. Now error_messages is a plugin! rails plugin install git://github.com/rails/dynamic_form.git -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Joe Smith
2010-Apr-15 02:21 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
"Kristian Mandrup" <kmandrup@gmail.com> wrote in message news:1d472af2-9a09-4f24-a8e1-2b6626294495@w17g2000yqj.googlegroups.com...> It turns out that Yehuda seems to have ''cheated'' a little with the > screencast. The app needs the scaffold.css. > > Is there a way to generate this stylesheet without scaffolding?In Rails 3 beta 1 one could add the stylesheet via "rails generate stylesheet", I doubt that has changed for beta 2 or 3, but I have not actually checked. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Kristian Mandrup
2010-Apr-15 02:47 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
$ rails g stylesheet Could not find generator stylesheet. I guess not... but http://github.com/rails/rails/tree/master/railties/lib/rails/generators/rails/stylesheets contains a stylesheets generator $ rails g Please choose a generator below. Rails: controller generator helper integration_test mailer metal migration model observer performance_test plugin resource scaffold scaffold_controller session_migration stylesheets $ rails g stylesheets create public/stylesheets/scaffold.css Nice!> In Rails 3 beta 1 one could add the stylesheet via "rails generate > stylesheet", I doubt that has changed for beta 2 or 3, but I have not > actually checked.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Joe Smith
2010-Apr-15 15:52 UTC
Re: Rails 3 beta3 app generator does not generate default stylesheet
"Kristian Mandrup" <kmandrup@gmail.com> wrote in message news:42ccda8e-486c-4185-964a-d6b9c7fa1eb1@u31g2000yqb.googlegroups.com...>$ rails g stylesheet > Could not find generator stylesheet. > > I guess not... but > http://github.com/rails/[...] > > contains a stylesheets generator >Yeah. I have trouble remember that is a plural generator name, since most (i.e. all other) generator names are signular, and this installs only one stylesheet, so "generate stylesheets" seems wrong anyway. Go figure! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Yehuda Katz
2010-Apr-18 18:19 UTC
Re: Re: Rails 3 beta3 app generator does not generate default stylesheet
Yeah! Let''s fix that :) I intended to actually mention that I used a stylesheet, but then totally forgot. Fail! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Thu, Apr 15, 2010 at 11:52 AM, Joe Smith <unknown_kev_cat@hotmail.com>wrote:> > "Kristian Mandrup" <kmandrup@gmail.com> wrote in message > news:42ccda8e-486c-4185-964a-d6b9c7fa1eb1@u31g2000yqb.googlegroups.com... > >> $ rails g stylesheet >> Could not find generator stylesheet. >> >> I guess not... but >> http://github.com/rails/[.. <http://github.com/rails/%5B..>.] >> >> contains a stylesheets generator >> >> > Yeah. I have trouble remember that is a plural generator name, since most > (i.e. all other) generator names are signular, and this installs only one > stylesheet, so "generate stylesheets" seems wrong anyway. Go figure! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.