Friday, July 12, 2013

Re: [Rails] Re: restricting force_ssl to one controller

Hi Tim

They are navigation links in a global template set, haml.

 %li.events
        %a{ :href => "/events",:title =>"Events" }
          Events 

I think I'm stuffed.  

Even if I created a subset of the navigation set just for this section using full URLS, I'm still stuffed in development or any of the other testing servers with different URLs.

Any other ideas?






On 12 July 2013 13:40, Timster <timshaffer00@gmail.com> wrote:
How are you generating the URLs for the links?

If you are using something like this:

  projects_path

You can change it to this, which will generate a fully qualified URL (with host and protocol):

  projects_url

And to explicitly break out of HTTPS, you can do the following:

  project_url(:protocol => :http)

--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/y7nRFfOzxi0/unsubscribe.
To unsubscribe from this group and all its topics, 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/9586b1d2-763b-4d46-8de5-fcc1d06b0731%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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/CAEo0_UjjXGjOt%2BsRFf25O_SzQOObcbcqCH50%2B-M0DuW-0jG86g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate