Dec 25, 2014 10:12 PM
(This post was last modified: Dec 25, 2014 10:14 PM by cortland12.)
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:
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.
For example: In my controller I have:
Code
def index
@instagram = Instagram.media_search("39.78172130000001", "-89.6501481")
endIt 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.

