Ruby on Rails
Tuesday, February 11, 2014
Phil,
To create CRUD application you can use Rails scaffolding which saves your most of the time instead of coding same stuff yourself. Of-course its a better approach when something is already build why would you waste your time on it unless you have to make it more customizable?
Bootstrap basically helps to improve your look & feel. Scaffold also gives you basic css style but you can skip to generate stylesheet while generating scaffold and integrate bootstrap.
Assuming you have integrated bootstrap already. To generate scaffold and use bootstrap with it, commands would be:
On Tuesday, February 11, 2014 3:04:14 AM UTC+5, Phil Dobbin wrote:
-- To create CRUD application you can use Rails scaffolding which saves your most of the time instead of coding same stuff yourself. Of-course its a better approach when something is already build why would you waste your time on it unless you have to make it more customizable?
Bootstrap basically helps to improve your look & feel. Scaffold also gives you basic css style but you can skip to generate stylesheet while generating scaffold and integrate bootstrap.
Assuming you have integrated bootstrap already. To generate scaffold and use bootstrap with it, commands would be:
Hope this is what you were looking for?rails g scaffold Post title:string description:text--skip-stylesheets
rake db:migrate
rails g bootstrap:themed Posts
On Tuesday, February 11, 2014 3:04:14 AM UTC+5, Phil Dobbin wrote:
Hi, all.
I'm relatively new to Rails though I have completed the Depot app in the
book 'Agile Web Development with Rails 4' & I'm looking for advice.
I'm attempting to construct RailsBootstrap & have used Passenger to
install nginx & have installed the rails gem & have issued the 'rails
new' command to start with.
I'm looking for a generic scaffolding command I can run for the project.
It's going to be a personal web site but it will carry a lot of info.
Firstly, do I really need to use scaffolding as Bootstrap in itself may
be enough & if I have to use scaffolding, what's a safe general command
to run for a personal web site? All I could turn up on Google was stuff
related to stores & the like.
Any help appreciated,
Cheers,
Phil...
--
currently (ab)using
Arch Linux, CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X
Snow Leopard, RHEL 7, Ubuntu Saucy
GnuGPG Key : http://phildobbin.org/publickey.asc
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b09410a3-8379-4ead-8e3b-d73e254a8e88%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment