Ruby on Rails Tuesday, February 11, 2014

On 11/02/2014 11:40, Ehtsham Abbas wrote:

> 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:
>
> /|rails g scaffold Post title:string description:text |//|--skip-stylesheets
> rake db:migrate
> rails g bootstrap:themed Posts
> |/
>
> Hope this is what you were looking for?

Hi, Ehtsham.

That looks pretty good to me. I'll try it. I have the project in a Git
repo so I can always roll it back if needed.

Thanks very much for your help.

Cheers,

Phil...

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


--
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/52FA1868.8070000%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment