Hi,

  I have a licenses controller. Other than a new method, i have a
new_trial_license method.

  The link implementation for the new_trial_license method looks like:
--------------------------------------------------------------------------------------
  <%= link_to 'New Trial license', :action => "new_trial_license" %>

  The link shows up as i expected 
http://localhost:3000/licenses/new_trial_license

  But it causes some error when i try to move to the page.
  The traceback is:
---------------------------------------------------------------------------------------
 ActiveRecord::RecordNotFound in LicensesController#show

Couldn't find License with ID=new_trial_license

RAILS_ROOT: /home/vimal/Projects/license_manager/
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:1528:in `find_one'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:1511:in `find_from_ids'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:590:in `find'
app/controllers/licenses_controller.rb:22:in `show'

Regards,
Vimal Das


--~--~---------~--~----~------------~-------~--~----~
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