Ruby on Rails Monday, April 29, 2013

Marnen Laibow-Koser wrote in post #871670:
> Alex Wayne wrote:
>> I'm sure this is easy since rails does this internally, but I need to
>> convert a string of url formatted variables
>> "foo=bar&baz=snoo&why=because" to a hash, and I need to convert a hash
>> to url format.
>>
>> Now before I roll my own methods to do this, does rails expose this
>> functionality somehow?
>
> Hold it. Why are you doing this in the first place? If it's part of
> request processing or URL generation, Rails will already do it for you.
> I'm not sure why you'd need this directly; please explain.
>
> Best,
> -- 
> Marnen Laibow-Koser
> http://www.marnen.org
> marnen@marnen.org

I want to link to '/auth/facebook' with parameters but that path is
handled by the omniauth gem and doesn't appear in my routes file.

--
Posted via http://www.ruby-forum.com/.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment