Jump to content

The ultimate community for Ruby on Rails developers.


Bootstrapping name spaced views?


  • Please log in to reply
2 replies to this topic

#1 Vell



  • Members
  • 100 posts
  • LocationWashington, DC

Posted 25 August 2013 - 10:25 PM

So I am deciding I want to throw boostrap into the mix for one of the applications I am running. I never had much luck in it when I first started out with Rails but I am feeling lucky :)


So far I am bootstrapping along and everything seems to be going ok as far as the install goes till I get to my namespaced views. I don't see anywhere in the documentation for being able to set the bootstrap theme for a set of namespaced views.

For instance, I have a views in a namspace called owners. But I am not abe to figure out how to get the command

rails g bootstrap:themed <namespaced views>

to work.


Based on the example:

rails g scaffold Post title:string description:text
rake db:migrate
rails g bootstrap:themed Posts

I am thinking it is expectingme to have a model in a namespace as well but I don't really want to create a empty models just for this purpose. Any ideas on how I can get this to work?

  • james likes this

#2 Jamie



  • Moderators
  • 142 posts
  • LocationNewcastle, UK

Posted 26 August 2013 - 07:42 AM   Best Answer

I believe you can run, for example:

rails g bootstrap:themed admin/orders Order

Try that..

  • Vell likes this

Rails developer based in Newcastle, UK.

#3 Vell



  • Members
  • 100 posts
  • LocationWashington, DC

Posted 26 August 2013 - 02:38 PM

Thanks Jamie. That worked!

Also tagged with one or more of these keywords: twitter-bootstrap-rails

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users