Rails accepts_nested_attributes_for with f.fields_for and AJAX

It Is Possible There’s a very, very good tutorial on this here: http://pikender.in/2013/04/20/child-forms-using-fields_for-through-ajax-rails-way/ We also recently implemented this type of form on one of our development apps. If you goto & http://emailsystem.herokuapp.com, sign up (free) and click “New Message”. The “Subscribers” part uses this technology BTW we did this manually. Cocoon actually looks really good, … Read more

Customizing Devise error messages in Rails 3?

You can configure the error messages in the locales file at: /config/locales/devise.en.yml Which should have something like below code and which you can easily modify to your liking: en: errors: messages: not_found: “not found” already_confirmed: “was already confirmed” not_locked: “was not locked” devise: failure: unauthenticated: ‘You need to sign in or sign up before continuing.’ … Read more

How to integrate a Wrap Bootstrap theme into an Rails application?

First check this screencast: http://railscasts.com/episodes/328-twitter-bootstrap-basics then I would add a bootstrap gem like bootstrap-sass, then add the JS files through the gem by adding them to the manifest, something like this: //= require jquery //= require jquery_ujs //= require bootstrap //= require_tree . then i would get the css files that you bought from wrapboostrap … Read more