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

Brendan's Tasks app #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brendanthomas1
Copy link

%tr
%td= t.title
%td
%a{ href: "/tasks/#{t.id}" } Details
Copy link

@sjreich sjreich May 26, 2016

Choose a reason for hiding this comment

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

This doesn't feel very Rails-ian. link_to and task_path or something like that? It's been a while. You can use $ rake routes to get the fancy names for the routes.

Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure task_path is right. There's an extra level of Railsiness available though, using the task instance as the destination: %td= link_to 'Details', t

@mikegee
Copy link
Member

mikegee commented May 29, 2016

This looks pretty good, Brendan. 👍
There's just that one thing we commented on that seems out of place.

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.

3 participants