Skip to content

Conversation

@gravitystorm
Copy link
Collaborator

During review of #2207 I realised that we can simplify a bunch of our partial calls. For example, if @trace is a Trace model, then instead of:

<%= render :partial => "trace", :object => @trace %>

... you can instead call...

<%= render @trace %>

... and Rails will find the partial named after the model, and pass the object into the partial automatically. It also works with collections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants