Displaying 2 results from an estimated 2 matches for "pocs_tried_for_use".
2011 Jun 03
0
Rack Middleware support for Rails 2.0.2? If not what is the alternative to implement similar functionality in Rails 2.0.2..
...red to the rack-middleware Railscast by Ryan Bates(http://
railscasts.com/episodes/151-rack-middleware). I accordingly tried out
a `rake middleware` command in my config env. to check out the
middleware available wrt my rails app.
I go the following message/details:-
mohnish@mohnish-desktop:~/pocs_tried_for_use/postimage_poc3$ rake
middleware --trace
(in /home/mohnish/UP/pocs_tried_for_use/postimage_poc3)
rake aborted!
Don''t know how to build task ''middleware''
/home/mohnish/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/
rake.rb:1728:in `[]''
/home/moh...
2011 May 19
0
Unable to find the image path via file system using the paperclip plugin through the get method
...ruby/1.8/rubygems/custom_require.rb:31:in
`require''
script/server:3
Rendering
/home/mohnish/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb
(not_found)
^C** INT signal received.
Exiting
mohnish@mohnish-desktop:~/UP/pocs_tried_for_use/post_with_image$
**[QUESTION EDITED]**
Please find the code for the model post.rb:-
class Post < ActiveRecord::Base
#require ''paperclip''
has_attached_file :photo
end
My routes.rb files looks like this:-
ActionController::Routing::Routes.draw do |map...