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

New item helper that knows about filters #7

Open
dgm opened this issue Apr 3, 2011 · 1 comment
Open

New item helper that knows about filters #7

dgm opened this issue Apr 3, 2011 · 1 comment

Comments

@dgm
Copy link

dgm commented Apr 3, 2011

When a filter is in effect, it would be nice to have a helper that knows about the filter params, such that the filter is passed into the new form. the new form controller could then parse the filter params and initialize any fields to match the filter. Related to the example in issue #6, this would mean that if a filter was set on the transaction_type column with a value of "cash", clicking a "new transaction" link would go to a form with the transaction type already set to "cash"

@dgm
Copy link
Author

dgm commented Apr 3, 2011

Something like:

<%= link_to_with_filter(label, path, options) %>

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

1 participant