Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Rails Help

I would like to be able to type the latitude and longitude and it renders into the method and renders the page.

For example: In my controller I have:

Code
def index
   @instagram = Instagram.media_search("39.78172130000001", "-89.6501481")
end

It generates a list of instagram photos in that area based on those coordinates, of course. But I want to make a form where I enter in 2 parameters and it generates itself. If that make sense.

What I have:

[img]http://s24.postimg.org/j6rjwx4sx/photo.jpg[/img]

Also, sorry if this is worded strangely. It sounds correct in my head, I just suck at wording things. Can anyone give me some pointers, or give me something that'll lead me in the correect direction? Thank you in advance also.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by KubrickDec 9, 2018 04:17 PM 4 162 Dec 9, 2018 04:17 PM
Last Post: VoIPv2
by madcrazydrummaMar 29, 2015 01:23 PM 25 450 Mar 29, 2015 01:23 PM
Last Post: Strider64
by JavaProfitDec 18, 2014 04:25 AM 8 139 Dec 18, 2014 04:25 AM
Last Post: Shroomies