Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

use to_param for more Rails-compatible controllers #31

Merged
merged 1 commit into from Jan 16, 2015

Conversation

katafrakt
Copy link
Contributor

Right now I have to use something like

    if @page.update_attributes(attributes)
      redirect_to page_path(@page.name)
    end

in controller that manages Gollum. It would be nice to be able to use Rails-like redirect_to @page.

This pull request adds this.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) when pulling 4707010 on katafrakt:to_param into 9118e1d on nirnanaaa:master.

nirnanaaa added a commit that referenced this pull request Jan 16, 2015
use to_param for more Rails-compatible controllers
@nirnanaaa nirnanaaa merged commit 309020f into nirnanaaa:master Jan 16, 2015
@nirnanaaa
Copy link
Owner

Thank you 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants