This is an opinionated feature idea, so please bear with me :)

Rails provides scaffold generators; for instance rails g scaffold user name 
age:integer active:boolean creates models, controllers and (importantly) 
HTML views that are very valuable for newbies to experience the power of 
Rails and to have *"something"* up and running in the browser with one 
command:



My feature idea is: can we make these views *look a little nicer*?

Functionally, they include all the business logic needed. 
Visually, they look unstyled, unresponsive and old.
Therefore, 99% of the times, newbies cannot actually *use* these views 
unless they edit the related HTML.

If you can go back with your mind to the first time you used Rails, I'm 
sure you remember the awe at typing one command and being able to see 
working HTML pages in your browser. If we made those views nicer, the awe 
would be 10 times as much!

One way to achieve this goal would be to simply change the existing 
scaffold.css.scss 
<https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css>
 
to have better styles.
However… why reinvent the wheel when we can achieve something nice using 
Bootstrap CSS?

What I suggest is that scaffolded views can simply point to the CDN-hosted 
Bootstrap CSS <http://www.bootstrapcdn.com/> and then have a simple HTML 
structure that makes for better and responsive views (e.g., adding a <div 
class="container">). 

This would not affect existing Rails apps, or any code edited by 
programmers. It would simply replace the existing scaffolded view with a 
different one, still giving freedom to expert users to change it. Pointing 
to the CDN Bootstrap CSS would avoid adding an extra dependency to the 
code. In the end, it would greatly benefit newbies and not have a negative 
impact on anything else.

That's my… opinion! What do you think?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to