flame icon indicating copy to clipboard operation
flame copied to clipboard

(Flame::Errors::RouteExtraArgumentsError)

Open tablecell opened this issue 1 year ago • 0 comments

app.rb


Dir[File.join(".", "controllers/*.rb")].each { |f| require f }
class App < Flame::Application
  mount ProjectsController do      
      get '/category/:cat' , :projectslist  # for url  /projects/category/11
  end
  ...
end

controllers\projects_controller.rb

class ProjectsController < Flame::Controller

  def  projectslist  

        puts   params

  end 
end 

visit http://localhost:9292/projects/category/11 got err Action 'ProjectsController#projects' has no required arguments [:cat] (Flame::Errors::RouteExtraArgumentsError)

Is flame support named route params ?

tablecell avatar Jun 23 '24 11:06 tablecell