On Nov 21, 2013, at 5:37 AM, Rob Biedenharn <rob.biedenharn@gmail.com> wrote:
> On 2013-Nov-21, at 04:12 , Tamara Temple <tamouse.lists@gmail.com> wrote:
>
>>
>> On Nov 20, 2013, at 4:04 AM, Srdjan Cengic <cengasrle@gmail.com> wrote:
>>>
>>> Far as i know, link to http://api.localhost:3000/posts should work but i get routing error:
>>> No route matches [GET] "/posts" (Same with /posts.json)
>>
>> This isn't how localhost works, at all.
>>
>> If you need to set up a local subdomain for testing, you most likely will need to do things like modify your /etc/hosts table, set up local DNS resolvers, and the like. If you're running on a mac, you can use pow, which makes all that dead-easy.
>
> But you could use:
> http://api.127.0.0.1.xip.io:3000/posts
>
> See http://xip.io/ for the details, but this will resolve to the IP address before the .xip.io and then api will be the subdomain.
>
> -Rob
+++Rob. I didn't know about xip.io, thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/C8E528CE-7D63-4F4A-B57C-27BBDED3D414%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment