Sent from my iPhone

On May 20, 2011, at 12:18 PM, Mohnish G j <[email protected]> wrote:

> Hi Bryan,
> 
> Thanks for your response..
> 
> If I have understood your response properly....
> 
> I am aware about this difference in the name Bryan, I am just making use 
> of two different symbol names.. As per the requirement in the project. 
> To the best of my knowldege, I don't think I am calling a method like 
> the HTTP get or post through symbol like :post as I have named in my 
> 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.

> Bryan Crossland wrote in post #999866:
>> Sent from my iPhone
>> 
>> On May 20, 2011, at 5:32 AM, Mohnish G j <[email protected]> wrote:
>> 
>>> 
>>> in my project app.
>>>   <%form_for  :group_post, :url => {:action => :post_message, :id =>
>>>   <%= a.message %> by <%=  Investor.find(a.post_by).first_name %> <div
>>> class ="contentdispgrp" id="style_chck"> <%=
>>> distance_of_time_in_words(a.created_at,Time.now) %> ago </div><br/><br/>
>>> <hr/>
>>>   <%end%>
>>> 
>>> 
>>> I actually tried comparing this with the view file in my POC which
>>> successfully uploaded images for me and even displayed the same. The
>>> new.html.erb file of my POC looks like this:-
>>> 
>> 
>> You POC and actual apps form_for are different. In the POC your are
>> doing a :post and in the actual form you are missing it. You have
>> :group_post. That is not a method of posting and is being treated like a
>> parameter as shown in your log file. Change :group_post to :post.
>> 
>> 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.
> 

-- 
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.

Reply via email to