Thanks for your replies. Opinionated feature idea demands opinionated responses!

Here are my thoughts:

In response to Frank: 
----------------------------

I agree with you, good developers do not need any design or architecture to be 
enforced. Indeed, Rails does not enforce anything: you can manually create your 
own model, controller and view and use any HTML code you'd like to.

Less experts developers, however, might be scared by the "blank slate" 
experience, especially if they are new to Rails. That is why Rails provides 
scaffold templates, so people who just want to see something fast "up and 
running" can do so.

My proposal is not to enforce any framework as part of Rails, just to give a 
better experience to developers using scaffold generators. If you are not one 
of them, then you have nothing to fear!

In response to Abdelkader, Nicolas, Robert:
----------------------------------------------------------

I appreciate your feedback. You made good observations, and I'd like to reply 
to them:

> one could make some minor changes to the scaffold code so if a developer were 
> to add bootstrap, foundation, or whatever framework to their project, the 
> generated scaffold code would automatically have it’s styles enhanced by the 
> added framework.
 
Robert, I'd love to do that, but unfortunately different CSS frameworks require 
quite different HTML structure. For instance, Foundation is able to style any 
<table> object, while Bootstrap require <table class="table">. On the other 
hand, Bootstrap requires a <div class="container"> to apply grid-styles, while 
Foundation does not. So simply editing the current HTML template would not be 
enough.

> Maybe we should only provide a better default CSS file.

Nicolas, that is something that Abdelkader, Robert, you and I agree on: 
something can/should be done about improving the existing scaffolding styles. 

My question is: can these styles be "good enough" so they can actually be used 
(in production)? 

If the answer is NO, then we can as well leave them as they are, and agree with 
Frank: it's not Rails' purpose to provide anything more than a bare minimum 
HTML view.

If the answer is YES, then scaffold.css would need to include a lot of styles: 
tables, forms, responsiveness, lists and so on. This is why I suggested 
Bootstrap, since it already includes all these styles. But still, we can 
achieve the same purpose without Bootstrap, just by writing a longer CSS file 
that includes a good amount of these styles. Abdelkader, Nicolas, Robert, would 
this work for you?

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