def get_url(url)
return "http://localhost:3000" + url
end
If URL were /model/file/1/a.jpg, then you'd get http://localhost:3000/model/file/1/a.jpg in return. When moving to a new webserver, we just need to edit the helper and change the base URL.
def get_url(url)
return "http://localhost:3000" + url
end
No comments:
Post a Comment