Displaying 20 results from an estimated 80000 matches similar to: "ActionView::CaptureHelper#capture error"
2008 Dec 08
2
undefined method 'render_file' for class 'ActionView::Base'
I need some help with SimpleLog
I have SimpleLog running at HostingRails.
I want to develope and test new themes stuff on my local system.
I getting the error from actionview_ex.rb:12
undefined method ''render_file'' for class ''ActionView::Base''
I am at:
Ruby: 1.8.6
Rails 2.2.2
gem: 1.3.1
rake: 0.8.3
I am a new rails/merb/ruby developer. I think I am on the
2006 Sep 04
1
Overriding ActionView::Helpers::InstanceTag::DEFAULT_TEXT_AREA_OPTIONS
What is the best way to override some of the FormHelper default
options? Right now I''m adding this to the beginning of my
environment.rb:
ActionView::Helpers::InstanceTag::DEFAULT_TEXT_AREA_OPTIONS = { "cols"
=> 80, "rows" => 5 }
Is that the way it''s supposed to be done?
--~--~---------~--~----~------------~-------~--~----~
You received this message
2008 Jul 06
1
ActionView::Base.field_error_proc not getting an error field
In my User form I have standard field to get user record attributes
(first_name, last_name and email)
I also have a select drop_down to choose a role from an array
first_name, last_name and email are user record attributes, but I
defined the role name as a virtual attribute
validates_presence_of :email, :last_name
attr_accessor :role_name
validates_presence_of :role_name, :if
=>
2008 Mar 06
1
Unitialized constant ActionView::Helpers::TagHelper::Set
Hi all,
I write the following test to a simple plugin
require ''rubygems''
require ''test/unit''
require File.dirname(__FILE__) + ''/../lib/meta_tags''
require ''action_view/helpers/tag_helper''
class MetaTagsTest < Test::Unit::TestCase
include MetaTagHelper
include ActionView::Helpers::TagHelper
.
2007 Feb 06
1
Extending ActionView::Base to include 'public'
How can I extend the ActionView::Base class to include the "public"
directory? Or any other directory for that matter?
--
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
2007 Jan 17
2
Using IO.popen to capture stderr?
Hello,
I''m trying to write a utility to run an external process and capture
it''s stderr. It seems that IO.popen only lets me read the stdout. Any
tips for how to read stderr?
Mike
snippet of code...
def process_file(filename)
@filename = filename
puts "Processing: " + @filename
cmdline = "ffmpeg -i " + @filename
ffmpeg =
2007 Nov 23
2
Capture IP Address to Sessions
What I''d like to do:
Capture the IP addresses of the folks visiting a web site in the
Sessions table.
What needs to be in place (code, model, controller, etc.), where does
it need to go (application controller?), how best to set up the
Sessions table?
Appreciate a noob-friendly outline of what needs to be done.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from
here...)
Has anyone been succcessful with 2.3.2, AS, and nested scaffolds?
I have the latest of AS and the render_component plugin via
% 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|
...
2006 Oct 23
0
What does this mean -uninitialized constant ActionView Base
Full error: uninitialized constant ActionView Base::CompiledTemplates
Not sure here. I have a controller, model and views for something called
''cana'',
Howere I also have a model and a table called ''canb''.
In the show template for ''cana'' I''m attempting to do:
<% @canbs = Canb.find(:all) %>
<% for canb in @canbs %>
2009 Apr 09
4
uninitialized constant ActionView::Helpers::AssetTagHelper
Hi All,
I just wiped out my hard drive, did a fresh install of os x 10.5, and
upgraded to rails 2.3.2. i installed the mysql pkg for os x, and
created the databases i needed for the project i was working on before
the upgrade.
However when i run rake db:migrate to run my migrations i get this
error
uninitialized constant ActionView::Helpers::AssetTagHelper
I''ve found some stuff about
2007 Nov 16
0
ActionView::Helpers::SanitizeHelper.sanitize docs
Hello,
First sentence of sanitize() method doc says: "This sanitize helper
will html encode all tags and strip all attributes that aren''t
specifically allowed."
But sanitize("<h1>foo</h1> <bar>should html encode</bar>") ==
"<h1>foo</h1> should html encode".
Shouldn''t it html encode <bar> to
2007 Jan 24
0
ActionView::Helpers::InstanceTag#to_date_tag help
I''m trying to read through the code, hoping to find a way to custom
style select boxes for a date_select and can''t figure out this code.
Any help appreciated:
<code>
def to_date_tag()
defaults = DEFAULT_DATE_OPTIONS.dup
date = value(object) || Date.today
options = Proc.new { |position| defaults.merge(:prefix =>
2005 Oct 14
2
Capture template output as plain html?
Hi,
I''m trying to find out if the following is possible.
I have a rhtml template stored in the database as a string. I need to
process the template (as a string), similar to using ActionView''s <%=
render_template("rhtml", @template_string) %>, but I need to do this in the
ActionController and capture the result as a string.
There is a method
2006 Oct 05
3
Exception Notifier plugin has stopped working.
Exception Notifier seems to have ceased working for some reason. I
thought perhaps a change in edge rails was to blame, but I rolled back
to 4900 and the problem was still there.
The problem is that it generates an error in the _session.rhtml partial.
It looks as if a method in the PP class is bombing. It says wrong
number of argument (1 for 0), but there is no method on that line with
2013 Jul 05
1
No ActionView module in Rails Edge API. Did they remove it from the framework?
I found that there is no ActionView module in
http://edgeapi.rubyonrails.org/
Did they remove it from the framework?
--
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 unsubscribe from this group and stop receiving emails from it, send an email to
2008 Dec 17
9
Rails 2.2.2 and globalize - undefined method `render_file' for class `ActionView::Base' (NameError)
Looks like globalize (1.2) is not compatible with rails 2.2.2. I am
getting:
''
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails 2.2.2 application starting on http://0.0.0.0:3003
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3003
** Starting Rails with development environment...
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:
2007 May 15
2
openURI not capturing pages from the same rails app
Hi,
I am using standard Ruby library openURI to capture the HTML code from
other pages. The problem openURI does not work for capturing pages from
the same rails application.
Here is the code:
class CdCreatorController < ApplicationController
require ''open-uri''
def generate
lines = []
file = open("http://127.0.0.1:3001/cd_creator/product/1"){ |f|
2007 Apr 24
0
how to capture text from a popup window..in watir
Hi all,
I got the answer how to click on ''ok'' button.
But still i have two problems
---
that code is not working when im trying to run that code through the exe
file of that ruby file which is using that code.
and second one is i want to capure the text of that popup..
i tried this with no success
#----- js_dialog.rb -----
require ''win32ole''
require
2006 Jul 14
7
Using ActionView free style
ActionView is a very useful class, in its own right. But, calling it by
itself causes a weird crash, exiting Ruby, without even raising an
exception!
ruby script/runner "begin; av = ActionView::Base.new; av.render(:inline
=> ''Hi!''); rescue => e; puts e; end"
just crashes Ruby.
Same with render(:file => ''template.rhtml'')
Why is this?