I'm a little embarrassed to ask this but I have a url that is like:
foo/bar/5?start=45
and in foo_controller I'm trying to access it like so:
def bar
@start_time = get_start_time(params)
end
def get_start_time(params)
if params['start'].to_s != nil
return '?start='+params['start'].to_s
end
end
I'm coming from PHP/.NET so RESTfulness is a little difficult for me
to wrap my head around. Maybe I'm googling on the wrong terms but I
haven't had any luck yet...Any advice would be very appreciated.