Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming instance variable on the view #5

Open
zamith opened this issue May 11, 2015 · 3 comments
Open

Naming instance variable on the view #5

zamith opened this issue May 11, 2015 · 3 comments

Comments

@zamith
Copy link

zamith commented May 11, 2015

How did you manage to get @thing on the show view? Shouldn't it always be @model and @form, the variables sent to the view? Is there a way to change this?

@apotonick
Copy link
Owner

@fernandes
Copy link

mine? 0_o kkkkkkkkk

@zamith
Copy link
Author

zamith commented May 11, 2015

👍 that is nicer. I like having ivars with intent revealing names. What about index? I would like to have an ivar called @things, or at least not @model, which hints at a singular resource. How can I achieve that?

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

No branches or pull requests

3 participants