railscasts.com

See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id %> <%= product.name %> <%= product.released_on %> <%= product.price %> <% end %> This approach may help us...

makandra dev
tech.taskrabbit.com

...on how we make our app(s). In the beginning, there was the monolithic Rails app in the standard way with 100+ models and their many corresponding controllers and views...

...one via API. Our newest project is a single “app” made up of several Rails engines. We have found that this strikes a great balance between the (initial) straightforwardness of...

Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...

island94.org

GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...

Sometimes you might want to limit the number of associated records in a has_many association, but cannot add a...

makandra dev
github.com

...all requests to a Rack application. You can use Sinatra, raw Rack, or even Rails as your application, allowing you to build up an equivalent to the remote service you...

The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...

makandra dev

...notes # => collects TODO, FIXME and other Tags from comments and displays them rake about # (Rails 3+) => Rails, Ruby, Rake, Rack etc. versions, used middlewares, root dir, etc...

stackoverflow.com

...my application' end end test_routes = Proc.new do get '/my_application' => 'my_application#show' end Rails.application.routes.eval_block(test_routes) Put it into a place like spec/support/test_routes.rb, or a similar place that...

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already know, that you can abbreviate code like dogs.each { |dog| dog.bark...

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for the development environment: rails dbconsole -p test

...write this instead: rails dbconsole test -p

This has to be added to the VirtualHost configuration for Apache for Rails 2 applications: RailsEnv development When running Rails 3, you need RackEnv development

github.com

...PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x Common table expressions Relation#with Model.from_cte Arrays Face.where.contains tags: %w[happy smiling...

makandra dev
failtale.be

Free Hoptoad/Airbrake alternative which can capture exceptions from any platform. It comes with a Rails notifier and a RESTful API to write your own notifiers for Javascript, etc.

makandra dev
github.com

Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as our standard authorization solution...

github.com

Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as 'delivered' in Pivotal Tracker...

github.com

Wrapper from Globalite API to the Rails 2.2 I18n API

intridea.com

I am a huge fan of SASS (Syntactically Awesome Stylesheets) for styling Rails applications. I have been using it on all of my projects for quite a while now and...

pathf.com

Noel Rappin discusses ways to keep up with edge Rails...

github.com

A Rails FormBuilder with semantically rich and accessible markup...

tagaholic.me

Rails’ script/console makes it easy to fetch, view and edit your database records. But can you edit those records as quickly as you edit code in your text editor? Riiight...

github.com

Simplifies plugin testing by creating an isolated Rails environment that simulates its usage in a real application

github.com

A Rails plugin that delivers a special message to DiggBar users, or runs frame-killer javascript...

github.com

Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator...