search for: templateerror

Displaying 20 results from an estimated 155 matches for "templateerror".

2006 Jan 16
1
Problem with production on Dreamhost - TemplateError
Hi all, I''m trying to deploy my app to Dreamhost for production. I''ve managed to solve all of the Error 500s and it''s *almost* working. When I try and view a page, I get a TemplateError that I don''t get when I''m running from home using InstantRails under Windows. The error is: ActionView::TemplateError (undefined method `user?'' for #<#<Class:0x40a7c224>:0x409e0644>) on line #15 of app/views/layouts/application.rhtml: The method '...
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
...mpiled (eg it has a block with a missing ''end'' statement), I''m experiencing WSODs - the browser reports a lost network connection, rather than the helpful compilation error that we used to have. When the compilation fails, ActionView#compile_template raises this error : TemplateError.new(find_base_path_for(file_name || template), file_name || template, @assigns, template, e) ...which appears to have a few things wrong with it. First off, file_name is always absolute here - eg /Users/jon/ Developer/Stacker/app/views/kittens/index.rhtml. find_base_path_for is going to fail si...
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
...a % script/plugin install --force git://github.com/lackac/render_component.git -r rails-edge I have an AS user_controller: active_scaffold :user do |config| ... config.nested.add_link("Portfolios",[:portfolios]) end But when I click on the Portfolios link I get: ActionView::TemplateError (undefined method `format_column'' for #<ActionView::Base:0xb67cee38>) on line #28 of vendor/plugins/ active_scaffold/frontends/default/views/_nested.rhtml: format_column is defined in: .../vendor/plugins/active_scaffold/lib/helpers/list_column_helpers.rb which is included via: .../...
2010 Jul 22
0
TemplateError while rendering german special characters
...ers (umlauts) without a problem i.e. Müller. But when Rails try to render a page which extracts the same string from the database it crashes with following error message. It is strange that it renders the string "Löchen" properly which doesn''t come from database. ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT) on line #28 of app/views/candidates/index.html.erb: 25: <td><%=h candidate.notes %></td> 26: <td><%= link_to ''Ansehen'', candidate %></td> 27: <td><%= link_to ''...
2008 Mar 13
0
ActionView::TemplateError when FQL query does not return any results
...results? I have the following FQL Query: "SELECT uid FROM user WHERE has_added_app = 1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = #{@current_facebook_user.id})" It usually works just fine. However, in the unlikely case where a user has no friends, I get this error: ActionView::TemplateError (You have a nil object when you didn''t expect it! The error occurred while evaluating nil.name) If a make these changes ... Index: vendor/plugins/facebooker/lib/facebooker/parser.rb =================================================================== --- vendor/plugins/facebooker/lib/face...
2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
When I run my functional tests, they throw an error with the following message: ActionView::TemplateError: Missing template /_captcha.erb in view path app/views:test/vendor/plugins/brain_buster/views/brain_busters On line #23 of app/views/contacts/_form.html.erb 20: <%= f.label :message %><br /> 21: <%= f.text_area :message %> 22: </div>...
2006 Apr 06
10
Advice needed on tracking down unusual error
Does anyone have advice on how to go about locating the cause of this error message: ActionView::TemplateError (wrong number of arguments (3 for 1)) on line #4 of app/views/products/search.rhtml: 4: <%= start_form_tag :action => ''search'' %> I don''t see anything wrong with line 4 above. Some background: I''ve made a number of changes to Controllers, Layouts, Vi...
2008 Jun 13
1
View spec failures without stack traces?!?
Hi. I''m getting TemplateErrors from a couple of my view specs with an accompanying message, e.g.: 3) ActionView::TemplateError in ''playlists/show.rss.builder should render playlist RSS feed'' You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occur...
2008 Mar 15
3
problem with config file
...ile, production: ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w everything works fine but if i have this ..... production: texaspivot.com: ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w i get this ActionView::TemplateError (texaspivot.com) on line #1 of app/views/group/map_main_layout.rhtml: i really need to be able to define three different domains for this... I don''t know what i am doing wrong, to me, looks just like the sample file. sorry so confused. thanks for any tips shawn
2006 Jul 26
4
MasterView rails-optimize (x)html friendly template engine - Release 0.2.4
...alternate namespaces for directives. Std app directives dir at rails app/masterview/directives will be automatically added to MasterView load path if exists. Release 0.2.2 Fixes problem when rails encounters exception in either compiling or involving RuntimeError in the generated rhtml. The rails TemplateError class looks at the file system for the template contents. So when generate_rhtml is false (no file is generated) rails was not able to find source and was not outputting an error page. Rails TemplateError class was extended to look at MasterView store first and then fallback to file system. More...
2011 Dec 16
4
nil object Error
...error ,i can''t figure it out why and from where it is coming ? please help me out to resolved this error if anyone knows about this issue. i am using following env. O.S:Windows XP Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Rails:Rails 2.3.11 Gem:1.6.2 ActionView::TemplateError (You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[]) on line #61 of app/views/layouts/main_bk_layout.rhtml: 58: <%if @session != nil%> 59: <table wid...
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
I cannot work out why this error is appearing. ActionView::TemplateError (can''t convert ActiveRecord::Error into String) on line #3 of app/views/button/_show_enquiry.html.erb: 1: <h1>Send us a message</h1> 2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do | f| %> 3: <%= error_messages_for '...
2006 Nov 07
3
include Helper in context?
...specify ''displays title "Login"'' do self.methods.should_include ''title'' render ''account/login'' response.should_have_tag ''h1'', :content => ''Login'' end end # fails with: ActionView::TemplateError in ''account/login (view) displays title "Login"'' undefined method `title'' for #<#<Class:0xb73154ac>:0xb7314f70> On line #1 of app/views/account/login.rhtml 1: <% title ''Login'' %> (a yield block in the layout) Note that...
2007 Oct 06
4
spec''ing views, mock_model associations
I writing a spec that returns the count of how many players in a game: it "should how many players in a link to all players" do render :partial =>"games/game", :object => @game response.should have_tag(''a'',"(2) Players") end I''m not sure how to do the mock model, I think it would be done two ways but unsure of the syntax: 1: add
2007 May 30
2
ActionView::TemplateError
Hi, I have a strange problem that only occurs on the production server. I''ve been banging my head for hours trying to figure it out with no success. Below is a copy of the error from the production log. ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/ public/../config/../app/models/image.rb to define Image) on line #6 of app/views/admin/design/_record.rhtml: 3: <td><%= link_to record.comments, :action => ''edit'', :id => record %></td> 4: <td> 5: 6:...
2007 Dec 27
4
Help With partials
...a piece of code into a partial I have a line in a view: <%= image_tag( createturing ) %> moving to a partial _createturing.rhtml and changing the view to: <div id="turing"><%= render(:partial => "createturing") %></div> gives errors: ActionView::TemplateError (can''t convert nil into String) on line #1 of accounts/_createturing.rhtml: 1: <%= image_tag( createturing ) %> what changes do i need to make when i move it into the partial? btw: the function createturing is in a helper if that makes a differance! --~--~---------~--~----~-----...
2008 Jun 09
3
Rails 2.1 and ddatetime_select
...t;%= datetime_select(:note, :follow_up, :discard_second => true, :minute_step => 15) %> <%= text_area ''note'', ''body'', :rows => "7" %> <%= submit_tag ''Save''%> <% end %> Results in: ActionView::TemplateError (wrong number of arguments (2 for 1)) I get the same result with date_select as well. Any help would be appreciated, thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To pos...
2005 Nov 15
2
FormOptionsHelper select call failing
In Rails 0.14.3, I''m doing the following in a view: <%= select ''folder'', ''format'', [''a'', ''b'', ''c''] %> This line in is failing with: ActionView::TemplateError (too few arguments.) Am I calling select incorrectly? (Yes, the @folder object does exist, and does have an attribute named ''format''.) My reading of the options_for_select documentation says this should work. Am I missing something, or should I file a bug? Replacing ['...
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
...The remote_function works fine and calls the Controller method when the first drop-down changes. I am also able to pass the selected value to the method and filter the records returned. The problem occurs when the controller attempts to render the partial, I get the following error: ActionView::TemplateError (undefined local variable or method `f'' for #<ActionView::Base:0xb6e7b2f4>) on line #1 of app/views/listings/ _automodels.html.erb: <%= f.collection_select :model, @automodels, :model, :model, {:prompt => "-Select a Make First-"} %> This leads me to believe that t...
2008 Nov 18
4
How to read the logs?
...learn how to read and decipher the logs? I''ve done a few google searches and nothing comes up. Specifically, I just uploaded my first app to a production server and it doesn''t work and I got the following even though it works perfectly fine on my development machine: ctionView::TemplateError (uninitialized constant Err::Acts::Textiled::ClassMethods::RedCloth) on line #26 of viewer/ show.html.erb: 23: 24: <% else %> 25: 26: <%= @page.body %> 27: 28: <% end %> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active_support/dependencies.rb:276:in `load_m...