On 3 March 2010 21:26, RichardOnRails
<[email protected]> wrote:
> Hi All,
>
> I got the links working.  I was just puttering around and all of a
> sudden I got them working.  If I can figure out what's different now
> compared to my failing version,  I'll report back.
>
> I'm not confident I'll be able to tell because I just keep hacking
> until I get something working.  II haven't taken the time to get
> subversion, etc., working.

Do it now, it will save time in the long run.  It is difficult to
learn if you are not sure what you did to fix something.  Most seem to
be using git now, it is my personal choice.  It is trivially easy to
start a repository even when just playing with a new idea.

Colin

>
> Best wishes,
> Richard
>
> On Mar 3, 12:23 pm, RichardOnRails
> <[email protected]> wrote:
>> I’ve got a Rails app that brings up a Home page,  which includes a
>> Vendor link.  Clicking on that link I get
>> ===========Web page start ========
>> NameError in VendorController#index
>> uninitialized constant VendorController
>> RAILS_ROOT: K:/_Projects/Ruby/_Rails_Apps/_EIMS/RTS
>> Application Trace | Framework Trace | Full Trace
>> Request
>> Parameters:
>> None
>> Show session dump
>> Response
>> Headers:
>> {"Content-Type"=>"",
>>  "Cache-Control"=>"no-cache"}
>> ===========Web page end ========
>> I start up withhttp://localhost:3000, which references config
>> \routes.rb that contains (sans comments):
>> ActionController::Routing::Routes.draw do |map|
>>   map.resources :vendor
>>   map.root :controller => "home", :action => "index"
>>   map.connect ':controller/:action/:id'
>>   map.connect ':controller/:action/:id.:format'
>> end
>>
>> That combination brings  up a webpage that includes a link named
>> Vendor, which is generated by the collective effect of:
>> •     app\controllers\ app\controllers
>> class HomeController < ApplicationController
>>   layout 'standard'
>>   def list
>>   end
>> end
>> •     app\views\home\ index.html.erb
>> <!-- \app\views\home\index.html.erb -->
>> <%= link_to 'Vendor', :controller=>'vendor',  :action=>'index'  %>
>> &nbsp;
>>
>> My machine is configured with:
>> Rails 2.3.5
>> Ruby 1.8.6
>> WinXP-Pro/SP3
>> Firefox 3.6
>> MySQL 5.0.37-community-nt
>> Mongrel
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to