search for: rails_application

Displaying 2 results from an estimated 2 matches for "rails_application".

2006 Jan 19
10
Where to place uploaded files for later download?
Hi there, I am working in a RoR application which allows certain users to upload files. Currently I store these files in a directory called "files". This directory is located in the RoR application directory: rails/rails_application/files So users don''t have access to them. Now I want users to be able to download some of these files (they will search based on some parameters). With this setup I cannot link from my views to that files since they are out of the public directory. I could move the files directory to th...
2008 Apr 29
5
Sharing: dont_repeat_yourself plugin custom RSpec matcher
I wrote a Rails plugin which uses simian to look for duplicates lines in your code and reports in html format, Textmate or Netbeans. I wrote it using RSpec and I have included a RSpec custom matcher: it { rails_application. with_threshold_of_duplicate_lines(4). should be_DRY } If you use Autotest, your specs will fail the next time you do a nasty copy-paste !!! More details in http://21croissants.blogspot.com/2008/03/dry.html Feedback and patches (with specs!) welcome ;-) Jean-Michel -- View this message in co...