# How to access the given url with parameters in your rails ap

**URL:** <https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179>\
**Category:** Rails\
**Created:** [January 20, 2009, 6:40am UTC](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179 "2009-01-20T06:40:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 20, 2009, 6:40am UTC](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179/1 "2009-01-20T06:40:48Z")

</div>

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](http://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](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 …

---

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 22, 2009, 7:15am UTC](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179/2 "2009-01-22T07:15:14Z")

</div>

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 S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
