Tobi Knaup
  • About
  • Rocketship Howto
    Overview Engineering Product Go To Market Positioning People Hiring Lessons Planning Crisis Management
  • Blog
  • Work
    Startups Publications
  • Personal
    Cocktails Tahoe Eastern Sierra
Navigation bar avatar

Rails

  • 🧑‍💻 accepts_nested_attributes_for and attr_accessible

    March 19, 2010

    In your model, if you have {% highlight ruby %} accepts_nested_attributes_for :attachments {% endhighlight %} And you limit the accessible attributes with something like {% highlight ruby %} …
    Tags:
    • Ruby on Rails
  • 🧑‍💻 Scenario: Using Machinist blueprints in Cucumber/Pickle

    September 21, 2009

    Given you have two blueprints for users: {% highlight ruby %} User.blueprint {} User.blueprint(:admin) {} {% endhighlight %} Then this is how you reference them from a Cucumber feature definition: {% …
    Tags:
    • Rails
    • Test
    • Ruby on Rails
    • Cucumber
    • Machinist
    • Pickle
  • 🧑‍💻 Multiple requests and session variables in functional tests

    September 12, 2008

    I spent way too much time today figuring out why this doesn't work as expected: {% highlight ruby %} def test_something get :list, nil, {:user_id => 1} get :list, nil, {:user_id => 2} end {% …
    Tags:
    • Rails
    • Test
  • RSS
  • GitHub
  • Twitter
  • LinkedIn

Tobi Knaup  •  2026  •  tobi.knaup.me