This is how we start new apps:
September 25, 2012 Comments (View) Hidden gems: suspenders There are a lot of gems out there. This is a great problem to h...
September 14, 2012 Tagged: paul_revere gem open source hidden gems Comments (View) Hidden gems: paul_revere There are times when you must proclaim from the rooftops, for all to hear, that your Web site has something to say! “Hear ye! Hear ye! The Swedish are coming !”, just like Paul Reveresson said. Thus we have the paul_revere gem . Install it To start, toss the gem in your Gemfile : gem 'paul_revere' There is an included generator, so be sure to run it: rails g paul_revere This will generate a migration to add an annoucements table, so run that: rake db:migrate Users of older versions of Rails will see a generated JavaScript file too. We’re almost there. Next up modify your layout to have a place for announcements. In app/views/layouts/application.html.erb : <%= render 'announcements/announcement_for_all' %> And finally add the JavaScript to the asset pipeline. In app/a...
Full article: http://robots.thoughtbot.com/post/31521932489/hidden-gems...
@ischroedi
»
14 Sep '12, 2pm
September 25, 2012 Comments (View) Hidden gems: suspenders There are a lot of gems out there. This is a great problem to h...