Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 957161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:39:24+00:00 2026-05-16T00:39:24+00:00

I noticed this little tid-bit in the readme for pickle : (The latest version

  • 0

I noticed this little tid-bit in the readme for pickle:

(The latest version of pickle supports multiple
blueprints
, for earlier versions of machinist use pickle <= 0.1.10)

I’m running in to a situation where I want to create a user with admin privileges. I’ve got two machinist blueprints:

User.blueprint do
  first_name
  last_name
  email
  password { "password" }
  password_confirmation { "password" }
  state "active"
end

User.blueprint(:super_admin) do
  roles { ["super-admin", "moderator"] }
end

Rather than creating a custom step for myself to create the super-admin user, I was wondering if there’s a way to do it using Pickle.

Using the following will use the normal pickle step and reference the basic machinist User blueprint:

Given a user exists with first_name: "Test", last_name: "Man"

The question is, how do I say that I want a super-admin user?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:39:24+00:00Added an answer on May 16, 2026 at 12:39 am

    So it turns out that creating named Machinist blueprints in Pickle is pretty simple:

    Given a super admin user exists with first_name: "Test", last_name: "Man"
    

    This line will call the same pickle step, but Pickle is intelligent enough to map the text “super admin user” to the User.blueprint(:super_admin) factory.

    It’s such an obvious method that I really should have just tried it before asking. The documentation for Pickle doesn’t explicitly mention the syntax for doing this anywhere, only that it’s possible to do. So now we know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed This question , but my question is a bit more specific. Is
I watched a little introduction into ASP.NET Dynamic Data, and I noticed this option
I was playing around with arrays in Javascript today and noticed this little gem:
I've noticed this little oddity(I think) in If Statements in Ruby. Here's an example:
Noticed this today when a patch was submitted with the following line: lblCompletionTime.Text =
I noticed this site http://aspnetwebstack.codeplex.com/ . Is web forms source available?
I just noticed this about a week ago. I'm storing data about the current
I just recently noticed this behaviour. To put it shortly, it displays the commits
The first time I noticed this was with AlertDialogs putting the entire message on
I've noticed this parameter on the Accept request header as: Accept: application/json, text/javascript, */*;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.