You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
class Application < Rango::Controller
format(:json) do |object|
object.to_json
end
end
class Post < Application
def show(id)
if format.html?
render "post.html", post: post
else
display post
end
end
end
class Application < Rango::Controller
format(:json) do |object|
object.to_json
end
format(:html) do |object|
path = self.template_path(request.action)
render path
end
end
class Post < Application
def show(id)
display post
end
end
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: