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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:06:54+00:00 2026-05-25T10:06:54+00:00

I am a newbie to Ruby on Rails and trying to setup oracle based

  • 0

I am a newbie to Ruby on Rails and trying to setup oracle based ROR application,

The DB table name is booker.live_edi_vendors

I have my controller defined in the following path:

../rails-root/app/controller/live_edi_vendors_controller.rb

And the content is:

 class LiveEdiVendorsController < ApplicationController
    def index
      @name = request.env['REMOTE_USER']
    end
 end

I also created a view for this controller, which is in ../rails-root/app/views/live_edi_vendors folder.

And I have put some code in index.html.erb inside this directory.

Now, my model file is ../rails-root/app/model/live_edi_vendors.rb

and the content in this file is:

class LiveEdiVendors < ActiveRecord::Base
      set_primary_key "live_edi_vendor_id"
      set_table_name "booker.live_edi_vendors"

      def LiveEdiVendors.find_by_legal_entity_id(legal_entity_id)
          return "asdadsad" #testing (temporary)
      end
  end

Now,

When i am trying to access the path <website host>/live_edi_vendors from browser, it says

uninitialized constant LiveEdiVendorsController

My routes.rb file is having the following line to route the request:

map.vendorlivelist 'live_edi_vendors/:action', :controller => 'live_edi_vendors'

Please, help me out, I struggling with these naming conventions a lot these days.

I am also putting my directory structure here:

app
|-- controllers
|   `-- live_edi_vendors_controller.rb
|-- model
|   `-- live_edi_vendors.rb
`-- views
    |-- layouts
    `-- live_edi_vendors
        `-- index.html.erb

Thanks,

  • 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-25T10:06:54+00:00Added an answer on May 25, 2026 at 10:06 am

    hmm Model name are always singular
    try

    class LiveEdiVendor < ActiveRecord::Base
      ....
    end
    

    and model file name too

    live_edi_vendor.rb
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a complete newbie in working with a Ruby on Rails (RoR) application.
I'm a newbie o thin. I have a ruby on rails application. Today I
Complete rails newbie trying to get started. I have two classes, Ingredient, and Unit.
hey I am newbie to ruby on rails and I am trying run a
Still a rails and ruby newbie, and I'm trying to figure out why adding
I am just starting to learn Ruby on Rails and have a newbie question
I'm Ruby/Rails newbie and trying to get the laika tool ( http://github.com/CCHIT/laika/tree/master ) running
I am a newbie to Ruby on Rails and I am trying to learn
im a rails (and ruby) newbie and struggling with an a scaffolded controller that
i have an error , when trying to use highcharts. javascript_include_tag jquery-1.4.2.min,rails,highcharts C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/jquery-rails-1.0.14/vendor/assets/javascripts/jquery.js isn't

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.