Forum: Ruby on Rails Url problem.....

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Vaibhav D. (Guest)
on 2009-04-06 13:30
I contain oracle as my database
having table "oratest11",contails 2 fields as
(id_field(Number),data(varchar2(20)) a sequence as "oratest11_seq" which
is incrementing the value of id_field

My model is as follows:-

class Oratest11 < ActiveRecord::Base
  set_table_name 'oratest11'
  set_primary_key 'id_field'

My Controler is as follows:-

class Oratest11sController < ApplicationController
  def index

  def show

Index view:-

  <% for ora in @oratest11s %>

        <td><%=h %>
<td><%=h ora.id_field %>
       <td><%= link_to 'show',:action=>'show',:id=>ora %></td>

  <% end %>


Show View:-

<table border="1">
    <td><%= %>
     <td><%= @oratest11.id_field %>


When i click on the show hiperlink error comes:-

Template is missing
Missing template oratest11s/show.erb in view path app/views

But when i used
Instade Used:-
it works fine...

so what could i used and how to directly go, after clicking the "view"

when, i change datatype of id_field as Number to Integer it works
but, i dont want to change the datatype of id_field sence it contains
lots of records.
This topic is locked and can not be replied to.