Kumar Saurav
2009-Jan-20 05:40 UTC
How to access the given url with parameters in your rails ap
Hi All, I have a problem. How can i use my rails created URL in my application. I Explain it briefly with an Example what i have to do . First please see the website (www.rails2u.com/bgmaker). I have to make the Image URL like this and facilate the user to use the url as image souce in his application as it is working presently. I succeed to make the url but unable to create the image on the fly with that url. my url is like this on my localhost "http://localhost:3000/images/image_creation/slash/xyz9427087.jpg?margin=3&linecolor=4FCCCC&bgcolor=FFFF36" If Anyone having any solution please let me know it would be great help for me ... -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ram
2009-Jan-22 06:14 UTC
Re: How to access the given url with parameters in your rails ap
u want to "create" that image on the fly using the url? in any case, i suggest u start by making a named route in routes.rb map.image_url "/images/image_creation/slash/:image_name", :controller => "images", :action => "create" Not sure if thats what you want cos not really able to understand ur requirement. But hope it gets u started. On Jan 20, 10:40 am, Kumar Saurav <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi All, > > I have a problem. How can i use my rails created URL in my application. > I Explain it briefly with an Example what i have to do . > First please see the website (www.rails2u.com/bgmaker). I have to make > the Image URL like this and facilate the user to use the url as image > souce in his application as it is working presently. > I succeed to make the url but unable to create the image on the fly with > that url. > my url is like this on my localhost > "http://localhost:3000/images/image_creation/slash/xyz9427087.jpg?marg..." > > If Anyone having any solution please let me know it would be great help > for me ... > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---