takafumir / rails_amp

RailsAmp is a Ruby on Rails plugin for AMP(Accelerated Mobile Pages).
MIT License
65 stars 26 forks source link

Controller instance variables return `nil` systematically and ActionView::Helpers methods are overriden #12

Open EmCousin opened 5 years ago

EmCousin commented 5 years ago

Hi,

I'm having an issue when trying to access the AMP version of a Rails view in my local environement

What happens is :

# 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?