rwallace_88-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
2011-Jun-15 19:45 UTC
uninitialized class variable @@env in OCI8
Can anyone help me with the uninitialized class variable @@env in OCI8
error raised in my app\views\xxxx index.html.erb file
Thanks in advance
Below is the code and the result of bundle show. I am using Windows 7
<h1>Listing comics</h1>
<table>
<tr>
<th>Title</th>
<th>Issue</th>
<th>Publisher</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @comics.each do |comic| %>
<tr>
<td><%= comic.title %></td>
<td><%= comic.issue %></td>
<td><%= comic.publisher %></td>
<td><%= link_to ''Show'', comic %></td>
<td><%= link_to ''Edit'', edit_comic_path(comic)
%></td>
<td><%= link_to ''Destroy'', comic, :confirm =>
''Are you
sure?'', :method => :delete %></td>
</tr>
<% end %>
</table>
Gems included by the bundle
* abstract (1.0.0)
* actionmailer (3.0.8)
* actionpack (3.0.8)
* activemodel (3.0.8)
* activerecord (3.0.8)
* activeresource (3.0.8)
* activesupport (3.0.8)
* arel (2.0.10)
* builder (2.1.2)
* bundler (1.0.15)
* erubis (2.6.6)
* i18n (0.5.0)
* mail (2.2.19)
* mime-types (1.16)
* polyglot (0.3.1)
* rack (1.2.3)
* rack-mount (0.6.14)
* rack-test (0.5.7)
* rails (3.0.8)
* railties (3.0.8)
* rake (0.9.2)
* ruby-oci8 (2.0.6)
* thor (0.14.6)
* treetop (1.4.9)
* tzinfo (0.3.28)
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
rwallace_88-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
2011-Jun-16 14:34 UTC
uninitialized class variable @@env in OCI8
Can someone help me with this error?
Started GET "/comics" for 3.134.140.40 at 2011-06-16 09:33:12 -0400
Processing by ComicsController#index as HTML
←[1m←[35mComic Load (2.0ms)←[0m SELECT comics.* FROM comics
Rendered comics/index.html.erb within layouts/application (1.0ms)
Completed 500 Internal Server Error in 25ms
ActionView::Template::Error (uninitialized class variable @@env in
OCI8):
12:
13: <% @comics.each do |comic| %>
14: <tr>
15: <td><%= comic.title %></td>
16: <td><%= comic.issue %></td>
17: <td><%= comic.publisher %></td>
18: <td><%= link_to ''Show'', comic
%></td>
app/views/comics/index.html.erb:15:in `block in
_app_views_comics_index_html_erb__444977452_38484516__909189289''
app/views/comics/index.html.erb:13:in `each''
app/views/comics/index.html.erb:13:in
`_app_views_comics_index_html_erb__444977452_38484516__909189289''
app/controllers/comics_controller.rb:7:in `index''
Rendered D:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.8/lib/
action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered D:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.8/lib/
action_dispatch/middleware/templates/rescues/_request_and_response.erb
(95.1ms)
Rendered D:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.8/lib/
action_dispatch/middleware/templates/rescues/template_error.erb within
rescues/layout (145.1ms
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.