I have just tried to run my app under Rails 2 but I have hit a strange error message and wonder if anyone here can give me any pointers. The error is: ActionView::TemplateError (undefined method `new'' for "rhtml":String) in portal/index.rhtml You can see the full error log here: http://pastie.caboo.se/154221 This is on Instant Rails 2. My app works fine on Instant Rails 1.7 and in my Netbeans environment, buth using Rails 1.2. I wanted to get my code adjusted for Rails 2 before updating my Netbeans environment. Thanks... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/19/08, John Lane <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I have just tried to run my app under Rails 2 but I have hit a strange > error message and wonder if anyone here can give me any pointers. The > error is: > > ActionView::TemplateError (undefined method `new'' for "rhtml":String) in > portal/index.rhtmlperhaps because in Rails 2.0 a view file x.rhtml needs to be renamed to x.html.erb ? -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
@John -- Can you show us the controller method? @Rick -- No, 2.0 is backward compatible with the .rhtml files. I''ve got many rendering with no problem. On Feb 19, 12:42 pm, "Rick DeNatale" <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 2/19/08, John Lane <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > I have just tried to run my app under Rails 2 but I have hit a strange > > error message and wonder if anyone here can give me any pointers. The > > error is: > > > ActionView::TemplateError (undefined method `new'' for "rhtml":String) in > > portal/index.rhtml > > perhaps because in Rails 2.0 a view file x.rhtml needs to be renamed > to x.html.erb ? > > -- > Rick DeNatale > > My blog on Rubyhttp://talklikeaduck.denhaven2.com/--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, there is no code in the portal controller: class PortalController < ApplicationController end I will download the latest versions of the plugins that I am using. I currently have active_scaffold (latest version downloaded today) acts_as_fulltextable attachment_fu headliner settings styler markaby will_paginate The problem was with Markaby. This plugin seemed a great idea but looks like it isn''t actively maintained any more. I found a patch to the code here: http://dev.rubyonrails.org/attachment/ticket/10543/markaby_fix.diff This fixed it for me. Thanks guys for your responses :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---