Quantcast
Channel: Is there a standard way to get an ActiveRecord item within Ruby on Rails from a given URL? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by nesiseka for Is there a standard way to get an ActiveRecord item...

On your basic example something like this should work.def get_object_from_url url_string class_string = url_string.split('/')[-2] object_id = url_string.split('/')[-1]...

View Article



Is there a standard way to get an ActiveRecord item within Ruby on Rails from...

Is there a standard way to get an ActiveRecord item in Ruby on Rails from a given URL?I have some data in an external RDF database which I can query to get URLs for items in my Ruby on Rails code. I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images