Le 15 oct. 2014 à 19:57, Claudio B. <claud...@gmail.com> a écrit :

> One way to achieve this goal would be to simply change the existing 
> scaffold.css.scss 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 and then have a simple HTML structure that makes for better and 
> responsive views (e.g., adding a <div class="container">). 

I like the idea of having a nicer scaffolding, I agree that the existing one 
looks outdated and ugly but I'm really against including a CSS / Grid framework 
because Rails must not do this choice for the developer. 

Remember the old time where prototype was the only supported JS framework out 
of the box. Most of Rails developer switched to Prototype even if they had a 
preference for another framework. I don't like when a framework promote other 
frameworks without real good reasons.

Pointing to a CDN isn't a good idea either since it's will exclude offline 
development.

So to sum up, yes I'd really like to see better scaffolds but to do this we 
need to find a way to provide choices / options to the user. Maybe he could 
choose (using command-line options or a gem) if he want to use bootstrap or 
foundation or something else. Maybe we should only provide a better default CSS 
file. I don't know which solution would be the best but I'm sure using 
Bootstrap (and a CDN!) by default is not the good one.
--
Nicolas Cavigneaux
http://www.bounga.org
http://www.cavigneaux.net

-- 
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