At: http://edgeguides.rubyonrails.org/getting_started.html You can see the following for example in /app/views/posts/show.html.erb . . <div class="field"> <%= f.label :body %><br /> <%= f.text_area :body %> </div> <div class="actions"> <%= f.submit %> </div> . . Regarding: <div class="field"> <div class="actions"> Are those classes built in Rails? Such that we don''t have to define them like we do when building an HTML/CSS website? Thanks. -- Posted via http://www.ruby-forum.com/. -- 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.
Abder-Rahman Ali wrote:> At: http://edgeguides.rubyonrails.org/getting_started.html > > You can see the following for example in /app/views/posts/show.html.erb > > . > . > <div class="field"> > <%= f.label :body %><br /> > <%= f.text_area :body %> > </div> > <div class="actions"> > <%= f.submit %> > </div> > . > . > > Regarding: > > <div class="field"> > <div class="actions"> > > Are those classes built in Rails? Such that we don''t have to define them > like we do when building an HTML/CSS website?Instead of asking, take a look through whatever CSS is getting included. That will answer your question.> > Thanks.Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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.
Thanks. -- Posted via http://www.ruby-forum.com/. -- 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.
Hey, a question I can answer! :-) Those aren''t ruby classes as you''re probably thinking about. They''re css classes and (from my limited knowledge of css) basically control the presentation of the text in between the tags. I''d look in the css file for "field" to see how it''s being presented (font, color, size, etc) Abder-Rahman Ali wrote:> At: http://edgeguides.rubyonrails.org/getting_started.html > > You can see the following for example in /app/views/posts/show.html.erb > > . > . > <div class="field"> > <%= f.label :body %><br /> > <%= f.text_area :body %> > </div> > <div class="actions"> > <%= f.submit %> > </div> > . > . > > Regarding: > > <div class="field"> > <div class="actions"> > > Are those classes built in Rails? Such that we don''t have to define them > like we do when building an HTML/CSS website? > > Thanks.-- Posted via http://www.ruby-forum.com/. -- 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.
I have created a "main.css", and referred to it in "application.html.erb" as follows: <%= stylesheet_link_tag "main" %> But, in my "main.css" there is NO "field" class. don''t you think it is built in Rails itself? -- Posted via http://www.ruby-forum.com/. -- 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.
On 22 August 2010 15:24, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have created a "main.css", and referred to it in > "application.html.erb" as follows: > > <%= stylesheet_link_tag "main" %> > > But, in my "main.css" there is NO "field" class. > > don''t you think it is built in Rails itself?Have a look in scaffold.css which was made by the scaffold generator. 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.
Colin Law wrote:> On 22 August 2010 15:24, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I have created a "main.css", and referred to it in >> "application.html.erb" as follows: >> >> <%= stylesheet_link_tag "main" %> >> >> But, in my "main.css" there is NO "field" class. >> >> don''t you think it is built in Rails itself? > > Have a look in scaffold.css which was made by the scaffold generator. > > ColinThanks Colin. In public/stylesheets I have created a custom .css "main.css". There is no such classes there. What do you think? -- Posted via http://www.ruby-forum.com/. -- 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.
On 22 August 2010 22:07, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote: >> On 22 August 2010 15:24, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> I have created a "main.css", and referred to it in >>> "application.html.erb" as follows: >>> >>> <%= stylesheet_link_tag "main" %> >>> >>> But, in my "main.css" there is NO "field" class. >>> >>> don''t you think it is built in Rails itself? >> >> Have a look in scaffold.css which was made by the scaffold generator. >> >> Colin > > Thanks Colin. > > In public/stylesheets I have created a custom .css "main.css". > > There is no such classes there.Do you mean that class field is not defined in scaffold.css? I am not using Rails 3 so I cannot confirm this but I would be surprised if it is not there. If not then just put whatever style you want for that class in your own stylesheet. 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.
I''m using Rails 3. And, as mentiond I don''t have "scaffold.css", and have "main.css". -- Posted via http://www.ruby-forum.com/. -- 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.
On 22 August 2010 22:26, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m using Rails 3. And, as mentiond I don''t have "scaffold.css", and > have "main.css". > --In your original post you said you are working from http://edgeguides.rubyonrails.org/getting_started.html. In section 6 it says that the scaffold generator will build 15 files, including scaffold.css. Did it not build that file for you when you ran the scaffold? 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.
Colin Law wrote:> On 22 August 2010 22:26, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I''m using Rails 3. And, as mentiond I don''t have "scaffold.css", and >> have "main.css". >> -- > > In your original post you said you are working from > http://edgeguides.rubyonrails.org/getting_started.html. In section 6 > it says that the scaffold generator will build 15 files, including > scaffold.css. Did it not build that file for you when you ran the > scaffold? > > ColinIt actually did build "scaffold.css". The case is I have created another application and entered a custom "main.css" and wondered how the classes still work while the stylesheet that contains its classes is not there. Also, I think I may have had to enter the question regarding the customized css in another thread. Thanks. -- Posted via http://www.ruby-forum.com/. -- 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.
On 23 August 2010 09:07, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote: >> On 22 August 2010 22:26, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> I''m using Rails 3. And, as mentiond I don''t have "scaffold.css", and >>> have "main.css". >>> -- >> >> In your original post you said you are working from >> http://edgeguides.rubyonrails.org/getting_started.html. In section 6 >> it says that the scaffold generator will build 15 files, including >> scaffold.css. Did it not build that file for you when you ran the >> scaffold? >> >> Colin > > It actually did build "scaffold.css". > > The case is I have created another application and entered a custom > "main.css" and wondered how the classes still work while the stylesheet > that contains its classes is not there.It would have saved a lot of time if you had said that in the first place. :) What do you mean by ''the classes still work''? There is no need for a class to have a css entry, the data will still be displayed, using whatever is the current style at that point in the page. 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Got you, thanks. -- Posted via http://www.ruby-forum.com/. -- 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.