Hi Bryan,
After taking in some inputs from another forum and combining those with
something I tried.. it finally works..The code that works is like this:-
<%form_for :group_post, @group_post, :url => {:action => :post_message,
:id => params[:id]},:html => {:multipart => true}, :id => 'new_post' do
|f| %>
..did the trick for me.. the quotes around the TRUE keyword had to be
reomoved..also id had to be removed from within the html symbol for me..
But I am actually in for a tradeoff.. the idea behind having id within
html was to use the same to render a .js.erb file to get an AJAXY effect
in displaying each post.. I really don't think the commit of may 08 2008
of paperclip would have support for jquery..
Bryan Crossland wrote in post #999935:
> Sent from my iPhone
>
> On May 20, 2011, at 12:18 PM, Mohnish G j <[email protected]> wrote:
>
>> POC..
>>
>> Kindly correct me in case your try to point out something else..
>> something I am unable to get from your reply.....
>>
>> Thanks again..
>>
>
> Sorry, that was my mistake for not reading your code closer if I had I
> would have noticed that along with the fact that your POC and your app
> are calling two different methods. Your POC is using a create (CRUD
> method) and your app is using a custom method. I'm not that familiar
> with version 2.0.2 of Rails but it may be treating your custom method
> differently. Just a guess. Try changing your call to is create and see
> if you have the same effect.
>
> B.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.