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 6107823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:13:50+00:00 2026-05-23T14:13:50+00:00

in my rails3 app i have a debitnote controller ,model and views created by

  • 0

in my rails3 app i have a debitnote controller ,model and views created by scaffold.
i show you the migration:

class CreateDebitnotes < ActiveRecord::Migration
  def self.up
    create_table :debitnotes do |t|
      t.string :debit_note_number
      t.date :date
      t.decimal :amount, :precision =>18, :scale => 2
      t.string :debit_account_of
      t.string :debit_for
      t.text :description

     t.timestamps
   end
 end

def self.down
drop_table :debitnotes
end
end

in my app i want to automatically generate a unique debitnote number when user open new form to create a deb

  • 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-23T14:13:50+00:00Added an answer on May 23, 2026 at 2:13 pm

    You may use UUID generator github repo

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

Sidebar

Related Questions

In a Rails app I have Sales and Salespeople: class Sale < ActiveRecord::Base belongs_to
In my Rails3 app I have AR scope which requires 3 parameters Ex: I'm
I just installed Rails 3 and created my first app. The install of Rails3
I'm running a lot of ActiveRecord queries in my Rails app that have quite
In my Rails3 app I have: <%= link_to Sign out, destroy_user_session_path %> I know
I have a Rails3 app that uses subdomains. To allow logins etc. to work
I have a basic rails3 app that I am deploying on site5. I have
Say I have a Web service, called JokeService , which is a Rack/Rails3 app
in my rails3 app I have installed rspec. But when I run the rspec
I have some strange behavior in my rails3 app. When I pick a date

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.