CanCan: Setting Permissions – Delicious Clone

by woody2shoes on February 11, 2011

In this installment in the Delicious Clone, we use CanCan to set some permissions on the Bookmarks Controller.

Next week, we’ll finish the bookmark creation process and the following, we’ll add styling with SASS.

Download 133.9 MB
Download (iPhone & iPod) 55.9 MB

  • http://austinschneider.com Austin Schneider

    The volume of your voice is really low in this one.

  • http://austinschneider.com Austin Schneider

    The volume of your voice is really low in this one.

  • http://austinschneider.com Austin Schneider

    Tip: your “I am logged in” step can be written like:

    Given /^I am logged in$/ do
    steps %{
    Given I have a user with email address “chuck@teachmetocode.com”
    When I go to the sign in page

    }
    end

  • http://austinschneider.com Austin Schneider

    Tip: your “I am logged in” step can be written like:

    Given /^I am logged in$/ do
    steps %{
    Given I have a user with email address “chuck@teachmetocode.com”
    When I go to the sign in page

    }
    end

  • http://nepalonrails.com Millisami

    Yup, the vol is not only low, its missing.
    I can’t hear anything though my volume is full.
    And not only in some place, all along the show.

  • http://nepalonrails.com Millisami

    Yup, the vol is not only low, its missing.
    I can’t hear anything though my volume is full.
    And not only in some place, all along the show.

  • Max

    I’m really enjoying working along with these. Couple of gotchas in this one:

    1. When editing ability.rb Charles misses out ‘can :show, Bookmark’ – without which you’ll just get redirected off the page.
    2. You can get a snippet of code for laying out the flash notice in the layout from the Railscast 224 code: https://github.com/ryanb/railscasts-episodes/raw/master/episode-224/store/app/views/layouts/application.html.erb

  • Max

    I’m really enjoying working along with these. Couple of gotchas in this one:

    1. When editing ability.rb Charles misses out ‘can :show, Bookmark’ – without which you’ll just get redirected off the page.
    2. You can get a snippet of code for laying out the flash notice in the layout from the Railscast 224 code: https://github.com/ryanb/railscasts-episodes/raw/master/episode-224/store/app/views/layouts/application.html.erb

Previous post:

Next post: