31 May '14, 9pm

File download done right with Rails

Getting your file downloads right is one of the most important parts of your File Management functionality. A poorly implemented download function can make your application painful to use, not just for downloaders, but for everyone else too. Thankfully it’s also one of the easiest things to get right. The simple version For the purposes of this article let’s assume that your application needs to provide access to a large zip file, but that access should be restricted to logged in users. The first choice we have to make is where to store this file. In this case there’s really only one wrong answer, and that’s to store it in the public folder of your rails application. Every file stored in public will be served by our webserver without the involvement of our rails application. This makes it impossible for us to check that the user has logged in. Unless your files are complet...

Full article: http://www.therailsway.com/2009/2/22/file-downloads-done-...

Tweets

Storing your files with Rails

therailsway.com 31 May '14, 9pm

This is the second article in my series on file management, the third article will cover the challenges of handling upload...

RailsCastsのKaminari回見ました…… #githubkaigi

railscasts.com 01 Jun '14, 6am

If you need pagination in Rails 3 try out Kaminari. It is a clean, flexible solution which uses scopes to flow nicely with...

Now downloading and syncing https://t.co/axRXFp...

bitcoin.org 01 Jun '14, 5pm

Bitcoin Core initial sync can take a very long time to complete. You should make sure that you have enough bandwidth and s...

angular-strap-rails (2.0.1): AngularStrap for r...

rubygems.org 31 May '14, 11am

angular-strap-rails 2.0.1 AngularStrap for rails. install gem install angular-strap-rails Download Documentation Badge Sub...

How to Share a Session Between Sinatra and Rails

robots.thoughtbot.com 30 May '14, 1pm

As Rails developers, we run into Sinatra apps all the time: gems such as Resque which expose a dashboard via Sinatra, lega...

Building an Ember App with Rails

rubyflow.com 31 May '14, 3pm

Building an Ember App with Rails Posted by bcardarella on May 31, 2014 — 0 comments Part 4 Comments “ ” Post a Comment Com...

How to find the right glasses for your face shape #sunglasses #tips

How to find the right glasses for your face sha...

herworldplus.com 01 Jun '14, 12am

Lots of us wear glasses, and not always because we need them (hipsters, we’re looking at you), but it’s often hard to work...

rspec-rails (2.99.0): RSpec for Rails

rubygems.org 01 Jun '14, 11pm

rspec-rails 2.99.0 RSpec for Rails install gem install rspec-rails Download Badge Subscribe RSS Authors David Chelimsky 9,...

Thank you #Rails truncate!

api.rubyonrails.org 12 Jun '14, 12am

Highlights one or more phrases everywhere in text by inserting it into a :highlighter string. The highlighter can be speci...

Amy Khor the way to go

I can see where Amy Khor was coming from when she told Foo Mee Har that foreigners first in employment was a bad policy. S...

“#swiftlang enums are taken directly from #rail...

api.rubyonrails.org 03 Jun '14, 4pm

Declare an enum attribute where the values map to integers in the database, but can be queried by name. Example: class Con...

I know I'm an old rails programmer because I ac...

therailsway.com 22 May '14, 6am

What a great approach. Although I would make the choice of the body ID explicit (rather than depending on the controller n...

muito útil! #ruby #rails #rubyonrails

apidock.com 30 May '14, 2pm

Splits or iterates over the array in groups of size number, padding any remaining slots with

Ruby on Rails: Screencasts

Ruby on Rails: Screencasts

rubyonrails.org 11 Jun '14, 10pm

Learning Rails the Zombie Way If you’re new to Rails and want to give it a try, then head over to RailsForZombies.org . Ra...