takafumir / rails_amp Goto Github PK
View Code? Open in Web Editor NEWRailsAmp is a Ruby on Rails plugin for AMP(Accelerated Mobile Pages).
License: MIT License
RailsAmp is a Ruby on Rails plugin for AMP(Accelerated Mobile Pages).
License: MIT License
Is there support for AMP for ActionMailer?
Hi! I wanted to know how can I target inside rails_amp.yml
to a controller inside a directory.
E.G. I want to target both controllers/posts_controller#show
and controller/blog/posts_controller#show
. I have tried the following but it seems not to be working:
targets:
posts: show
blog_posts: show
Hi,
I'm having an issue when trying to access the AMP version of a Rails view in my local environement
What happens is :
number_with_delimiter)
with AMP format returns an ArgumentError
exception (wrong number of arguments, given 2, expected 0
)# app/controllers/pages_controller.rb
class PagesController < ApplicationController
def my_action
@my_instance_var = "some data"
end
end
# app/views/pages/my_action.html.erb
<%= @my_instance_var %> #=> returns nil
Context :
Any insights?
if using this gem with cloudinary gem, the cloudinary helper:
cl_image_tag (which is a wrapper to image_tag, used to create img tags with cloudinary parameters)
creates an infinite loop which throws:
SystemStackError (stack level too deep)
I am wondering if rails_amp works with Rails 5.1. If not, any plan to update it? Thank you.
To display article body, I use actiontext (0.1.0) in conjunction with activestorage (5.2.3).
I don't have amp-img tag substitution. The HTML code does not change for the AMP version of the site.
And I get errors in google search console.
How can this problem be solved?
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.