You can do it 2 ways.
either write an web service or use an iframe in your view.
seems it is a collection method on http://video_tok.com/courses/get_course so
u can pass the src of the iframe as http://video_tok.com/courses/get_course
?id=obj.id

Hope it will help u


On Tue, Aug 13, 2013 at 5:29 PM, shareef dudekula <[email protected]>wrote:

> I want to call the method and get the response in my application from
> another application in Ruby on Rails technology, but here cross site
> scripting problem is there. so, i can i resolve this issue please help
> me it would be great.
>
> http://video_tok.com/courses/get_course
>
> def get_course @course = Course.find(params[:id]) end
>
> now i want to call this above method from this application which is
> running in edupdu.com domain
>
> http://edupdu.com/call_course_method
>
> def call_course_method @course = redirect_to
> "http://video_tak.com/courses/get_course/1"; end
>
> but it would be redirect into video_tak.com application. i want to call
> get_course method and get @course object internally without redirect to
> another site.
> please it's very urgent..we have to deploy the application
>
> Thanks in advance.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/2641306dba10219a7a995848eaed9c46%40ruby-forum.com?hl=en-US
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Mobile : +91 9035988755

Facebook : http://www.facebook.com/bala.kishore.21
linkedin : http://www.linkedin.com/profile/view?id=7562848
twitter : https://twitter.com/balakishorep

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAAREq_9qK0mFPOVKY6Sq0NUcFhT%2BB8GDqV4Xc%3DkPe2p0T20deg%40mail.gmail.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to