cedric / ssl_routes Goto Github PK
View Code? Open in Web Editor NEWEnforce SSL in your Rails routes.
Home Page: https://github.com/cedric/ssl_routes
Enforce SSL in your Rails routes.
Home Page: https://github.com/cedric/ssl_routes
model = Model.first
model.image.url
ArgumentError: wrong number of arguments (2 for 0)
from ssl_routes-0.2.0/lib/ssl_routes/paperclip.rb:12:in `s3_protocol'
from paperclip-3.4.1/lib/paperclip/storage/s3.rb:153:in `block in extended'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:34:in `block (2 levels) in interpolate'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:33:in `gsub'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:33:in `block in interpolate'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `each'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `inject'
from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `interpolate'
from paperclip-3.4.1/lib/paperclip/url_generator.rb:13:in `for'
from paperclip-3.4.1/lib/paperclip/attachment.rb:145:in `url'
from paperclip-3.4.1/lib/paperclip/attachment.rb:160:in `to_s'
from railties-3.2.13/lib/rails/commands/console.rb:47:in `start'
from railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
from railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>'
Using ssl_routes in 3.2 causes this deprecation warning:
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActionDispatch::Routing::UrlFor instead. (called from <top (required)> at .../some_file.rb:1)
t's because ssl_routes
adds the url_for_with_ssl_support
method to ActionDispatch::Routing::UrlFor
using its InstanceMethods
module, but ActionDispatch::Routing::UrlFor
now uses the Concern
library, which will automatically add instance methods from a module instead of auto-including an InstanceMethods
sub-module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.