Just in case anybody faces this problem: I solved it by using
"validates_associated" to validate the presence of associations. Using
"validates_presence_of" for this purpose gave me the same problems as
the original poster.
Anjan
--
Posted via http://www.ruby-forum.com/.
--
You received this m
Hi!
Would your solution above work for Flex apps as well? I'm using no AJAX.
Just Flex and rails. Even the upload is done from within Flex.
As I've mentioned previously in the post, I am sending the authenticity
token along with all my requests to rails. But the problem is that the
authentici
Thanks. I'll look closer into that. But I was testing on Safari (Mac)
and not Firefox.
But lately, I've been having more problems with the authentication /
session ID stuff. More of my actions started giving me the same error. I
ended up just switching off the verification authenticity globall
Any ideas, anyone?
--
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 rubyonrails-talk@googlegroups.com
To uns
Hi!
I think both of you have hit the nail on the head.
Just to avoid confusion, I placed all 3 of my methods in question into
the same controller (one working method, one method that does not work
and one method which renders the page that has the flex app in it).
Here is the log output when
This is in my HTML source:
function getAuthenticityToken()
{
return "86b74406048a7f629bd560eab8de771a74c620be";
}
___
And this is what I get from the logs:
Processing UploadController#upload_image (for 192.170.50.67 at
2008-10-15 12:58:50) [POST]
I don't understand what you want me to do exactly. Isn't the
authenticity token being sent from the HTML to Flex in the first place?
That same value is coming back from flex as a POST variable, right?
So how would they differ?
Do you want me to put a text field in the HTML and put the authenti
Hi!
I am using POST, not GET.
Thanks for the tip. I changed my code to use the external interface call
from flex. But the problem persists. Even with my previous code, there
wasn't any problem in sending the authenticity token from flex to rails.
Rails is receiving the token, as shown in the
Hi!
To send the authenticity token from flex back to the server, I followed
this:
http://blog.dt.org/index.php/2008/06/rails-2-flex-3-and-form-authenticity-tokens/
I have two controllers in my rails app. The method described in the link
above works with the actions in one controller, but does no
9 matches
Mail list logo