search for: compile_template

Displaying 12 results from an estimated 12 matches for "compile_template".

2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (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. fin...
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
...te inclusion: /app/views/imagemod/index.rhtml RAILS_ROOT: ./script/../config/.. Application Trace <http://localhost:3000/imagemod# | Framework Trace<http://localhost:3000/imagemod# | Full Trace <http://localhost:3000/imagemod# #{RAILS_ROOT}/app/views/imagemod/index.rhtml:2:in `compile_template'' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:305:in `compile_and_render_template'' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in `render_template'' C:/InstantRails-1.0...
2006 Apr 17
5
Strange question on file_column
...:locals => { :hidden => false } %> 14: <% end %> 15: </div> 16: </div> Trace of template inclusion: /app/views/demands/list.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/demands/list.rhtml:25:in `compile_template'' #{RAILS_ROOT}/app/controllers/demands_controller.rb:5:in `index'' -e:3 d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_view/base.rb:300:in `compile_and_render_template'' d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_view/base.rb:285:in `render_...
2006 Sep 12
1
Ferret on Windows?
...="0"> 3: <TBODY> 4: <TR> 5: <TD> Trace of template inclusion: /app/views/narratives/list.rhtml RAILS_ROOT: ./script/../config/.. Application Trace <#> | Framework Trace <#> | Full Trace <#> #{RAILS_ROOT}/app/views/narratives/list.rhtml:4:in `compile_template'' #{RAILS_ROOT}/app/controllers/narratives_controller.rb:18:in `index'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:307:in `compile_and_render_template'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:292:in `render_tem...
2006 Apr 25
16
case statements in views...strange error on OSX
I have a simple case statement in one of my views. This works fine on my windows machine. Move to the mac and I get: "parse error, unexpected tIDENTIFIER, expecting kWHEN". I have not changed anything but cannot resolve the issue. my view has this in it (simplified for test) <% case controller.controller_name -%> <% when "accounts" -%> <h3>worked
2008 May 29
2
Render partial yields "dynamic constant assignment"
...local_assigns[:BB02] ^ C:/Ruby_Development/sbtool/app/views/building_blocks/_BB02.html.erb:-1: dynamic constant assignment BB02_counter = local_assigns[:BB02_counter] Extracted source (around line #72): 69: </html> 70: Application Trace: app/views/building_blocks/_BB02.html.erb:72:in `compile_template'' app/controllers/building_blocks_controller.rb:99:in `preview'' script\server:3 -e:2:in `load'' -e:2 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &...
2006 Apr 30
6
Help, Gruff is killing me
...<th>Location</th> 8: <th>Action</th> Trace of template inclusion: /app/views/admin/show_management/list_shows.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/admin/show_management/list_shows.rhtml:6:in `compile_template'' #{RAILS_ROOT}/app/controllers/admin/show_management_controller.rb:12:in `index'' A quick restart of webrick fixes the issue until I generate another graph that is :-( Thanks Rafael
2006 May 09
6
Create checkboxes on page using contents of a hash
Hi all, I have a hash that is created in the index method of my controller. After it is created, the index.rhtml page is rendered. Upon this rendering I would like to create a check box for each key/value in the hash. The has is @recordsHash I have been trying varying stratagies like the one below, but to no avail. Do you have any ideas? Thanks for your help on this! html
2006 Sep 22
15
Win XP / Ferret & Acts_as_ferret .dump problem
Hey, Has anyone managed to bypass or fix the ferret''s .dump method problem? When I include acts_as_ferret my whole rails app just blows up because of Ferret''s .dump method. Ex: --- print "\t hello".dump >> "\t hello">Exit code: 0 --- --- require ''ferret'' print "\t hello".dump >> " hello"(NUL
2007 Jan 29
6
RJS problem
Hi, I''m implementing a "digg-like" page, that once you digg. The score for each item will dynamically reflect your current action +1 . I am not sure what''s In the controller I have an action responsible for increase of the score.It has a corresponding rjs in view. -------------------------------------------------------------------------------- def arouse
2006 Jan 10
7
All My Rails Apps Died Over the Holidays
I have several Rails (version 1.0) apps I''m working on on a Win XP box using Webrick that were working fine before I left for the holidays. I came back, started up and they all get the same syntax and compile errors: compile error ./script/../config/../app/views/time/list.rhtml:4: Invalid char `\212'' in expression repeated over and over. Refreshing the page gives thes same
2008 May 18
9
When should you restart a ruby server?
Hello everyone, While walking through AWDWR, Task D: Add a Dash of AJAX, I was initially unable to let the AJAX magic work. Hitting the Add to Cart button doesn''t yield to any output on its own; I had to manually refresh the pages to witness the change. But when I tried to restart the ruby server, and load the application again, everything worked fine. Any explanations to behavior