Displaying 2 results from an estimated 2 matches for "group_post".
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
2011 May 20
4
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
...without any
issues whatsoever with this plugin and thought its time to do the same
in my project app.
The current problem I am facing is that on submitting a post message, I
am unable to figure out where I am going wrong as in terms of what is
obstructing the photo to be passed as a params to the group_post
attribute that I am making use of.
I am having all this in a partial.... The part of the code that would
accept an image and a message is like this...
<%if @current_user.is_an_existing_member_of_group(@investor_group)%>
<%form_for :group_post, :url => {:action => :post_mes...
2011 May 14
0
Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7
...rials for this :-
1. http://railscasts.com/episodes/134-paperclip?view=comments
2.
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails.html
I did a git clone on the paperclip plugin via:-
https://github.com/thoughtbot/paperclip , but the command like `ruby
script/generate paperclip group_post photo` didn''t generate a migration
for it. I then created a migration for the same through ruby
script/generate and uploaded the appropriate columns of my table
`group_posts`.
I then tried to install the gem and since I am using activerecord and
activesupport 2.0.2 I used paperclip 2.3.8...