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

  • SEARCH
  • Home
  • 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 7507185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:26:13+00:00 2026-05-29T22:26:13+00:00

My seed_fu gem is working fine.But does not know how to update/delete an record.My

  • 0

My seed_fu gem is working fine.But does not know how to update/delete an record.My table is as follows..,

1|user1|42|2012-02-17 12:22:00.581111|2012-02-17 12:22:00.581111
2|user2|24|2012-02-17 12:22:00.603150|2012-02-17 12:22:00.603150

I’m having two records .I want to update record2 (i.e,the age as 12).I expect that the record2 to be updated.
Instead I’m getting the new updated record as follows.,

1|user1|42|2012-02-17 12:22:00.581111|2012-02-17 12:22:00.581111
2|user2|24|2012-02-17 12:22:00.603150|2012-02-17 12:22:00.603150
3|user2|12|2012-02-17 12:40:32.577283|2012-02-17 12:40:32.577283

Also I want to know how to delete a record using seed-fu gem.

  • 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-29T22:26:14+00:00Added an answer on May 29, 2026 at 10:26 pm

    Seed-fu gem is use only to insert, You can’t update or delete with it. Use ActiveRecord to do that.

    User.find(2).update_attributes!({:age -> 12})
    User.find(3).destroy
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to seed my database with some fake data, but it's not working
I understand what set.seed() does and when I might use it, but I still
I'm trying to seed my database with the standard db/seeds.rb method. This works fine
Is is possible to set the seed for the identity column of a table
I'm trying to work with seed-fu gem.I follow the document here . From that
MurmurHash3_x86_32() expects a seed parameter. What value should I use and what does it
Im attempting to seed a :name, :date pair to a table in my rails
I need to create a table variable with an identity seed that starts with
How does the seed value passed to Java's random number generator effect its output?
I'm trying to install acts_as_ferret in windows7.But am getting an error Using acts-as-taggable-on (2.1.1)

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.