Skip to content

Use local variables in _form.html.erb generated by scaffold. - #13434

Merged
carlosantoniodasilva merged 1 commit into
rails:masterfrom
tanraya:local_variables
Jan 3, 2015
Merged

Use local variables in _form.html.erb generated by scaffold.#13434
carlosantoniodasilva merged 1 commit into
rails:masterfrom
tanraya:local_variables

Conversation

@tanraya

@tanraya tanraya commented Dec 21, 2013

Copy link
Copy Markdown
Contributor

It seems a good idea to use local variables in generated partials instead of using instance variables.

Before

<%= render 'form' %>

After

<%= render 'form', product: @product %>

Comment thread railties/CHANGELOG.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`_form.html.erb` partial generated by scaffold.

@carlosantoniodasilva

Copy link
Copy Markdown
Member

👍

@dmathieu

Copy link
Copy Markdown
Contributor

@tanraya can you squash your commits please? Also, they don't apply cleanly into master. You'll need to rebase.

@tanraya

tanraya commented Dec 22, 2013

Copy link
Copy Markdown
Contributor Author

@dmathieu I will do.

@tanraya

tanraya commented Dec 28, 2013

Copy link
Copy Markdown
Contributor Author

@dmathieu done

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should verify what should be there, not what shouldn't be there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for @senny's comment.

@jamo

jamo commented Feb 11, 2014

Copy link
Copy Markdown
Contributor

I added the suggested test case, see jamo@a0b548d

(all tests passes)

@arunagw

arunagw commented Jul 4, 2014

Copy link
Copy Markdown
Member

@tanraya did you get some time to update this PR?

thanks

@tanraya

tanraya commented Jul 25, 2014

Copy link
Copy Markdown
Contributor Author

@arunagw Yes. Updated now.

@arunagw

arunagw commented Jul 25, 2014

Copy link
Copy Markdown
Member

@tanraya seems test broke. Can you see those as well ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this should not be removed.

It seems a good idea to use local variables in generated partials instead of using instance variables.

Before

    <%= render 'form' %>

After

    <%= render 'form', product: @Product %>
@tanraya

tanraya commented Jul 26, 2014

Copy link
Copy Markdown
Contributor Author

@carlosantoniodasilva @arunagw Now its done. All tests passed.

@rafaelfranca rafaelfranca modified the milestones: 4.2.0, 5.0.0 Aug 18, 2014
carlosantoniodasilva added a commit that referenced this pull request Jan 3, 2015
Use local variables in _form.html.erb generated by scaffold.

Conflicts:
	railties/CHANGELOG.md
carlosantoniodasilva added a commit that referenced this pull request Jan 3, 2015
@carlosantoniodasilva
carlosantoniodasilva merged commit 6bd8126 into rails:master Jan 3, 2015
@rafaelfranca rafaelfranca modified the milestones: 5.0.0 [temp], 5.0.0 Dec 30, 2015
christiannelson added a commit to carbonfive/raygun-rails that referenced this pull request Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants