RailsCasts Pro episodes are now free!

Learn more or hide this

jbarmash's Profile

GitHub User: jbarmash

Comments by

Avatar

Yes, I also came to Rails from Grails. Grails has a strong service layer concept, and encourages to push a lot of business logic into stateless (and transactional) service layer. Something I've missed in Rails, so I started doing something like this implicitly by creating non-db backed model classes.

http://grails.org/doc/latest/guide/services.html

Also, I would suggest if you are going to use service objects, to use similar convention as with controllers, i.e. call an object authentication_service vs service. That will help to know where the original definition lives - i.e. is it a model or a service.

Avatar

I ended up using the static version of twitter bootstrap.

according to docs on the github, just include

gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git', :branch => 'static'

in your gem file.