Displaying 20 results from an estimated 5000 matches similar to: "testing actionpack (for patch)"
2006 Oct 23
0
Using ActiveSupport::JSON in PrototypeHelper, ScriptaculousHelper
Hi all,
I was looking at this ticket:
http://dev.rubyonrails.org/ticket/6265
and it got me thinking: is there any reason we''re not using the tasty
ActiveSupport::JSON encoder to assemble options for the various helper
methods in PrototypeHelper and ScriptaculousHelper?
At the moment, they use options_for_javascript() in JavaScriptHelper,
which is a half-hearted JSON generator that
2008 Jan 18
2
Rspec problem in testing RoR application
Hello.
I install gems rspec and rspec_on_rails
I have this Error when try to run Rspec tests on my RoR application:
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
ActionView::Helpers::JavaScriptMacrosHelper (NameError)
And I follow recipes wich are placed in
2007 Dec 24
2
backgroundrb script crashing on startup
Everything works fine on my development box (Ubuntu 7.10, Ruby 1.8.6)
but on my server (Fedora Core 6, Ruby 1.8.5) when I run
script/backgroundrb start, the process fails to start.
This is with Rails 2.0.2 frozen in the app, and I have the most recent
version of the plugin (r297). Is Ruby 1.8.6 a requirement for
backgroundrb now? I can''t figure any other reason it would fail...
2007 Aug 01
1
PaginationHelper load_missing_constant error
I just ran into this error after updating rails and the
rspec_on_rails plugin (both are on edge):
/Users/ben/Work/wizzdl/vendor/rails/activerecord/lib/../../
activesupport/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
ActionView::Helpers::PaginationHelper (NameError)
from /Users/ben/Work/wizzdl/vendor/rails/activerecord/
2007 Oct 02
3
Note on Rails 2.0 Preview
Make sure you get a relatively current version of rspec or you will get:
/Users/me/rails/ubb/vendor/rails/activerecord/lib/../../activesupport/
lib/active_support/dependencies.rb:263:in `load_missing_constant'':
uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper
(NameError)
Hope this helps someone.
2006 May 19
1
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript in a model (a newbie question)
Hi all,
Please forgive me for this newbie question. But I really want to know how
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript
method in a model.
I can access this method in view, but when call it in the model, it ends up
with undefined method.
It seems to me they are in different scope.
So what''s the best way to access view helper methods in model.
--
2011 Mar 08
0
keep getting an error, "rescue in load_missing_constant': uninitialized constant Paperclip::Glue (NameError)"
hi, there
rails: 2.3.8
machine os: Ubuntu 10.04 Lucid
I''m having some problems with my rails installation in one of my new
development machines.
I have installed all the gems in my config/environment.rb file.
When I now run either script/console or script/server, I have the
error of " `rescue in load_missing_constant'': uninitialized constant
Paperclip::Glue
2007 Dec 24
1
Uninitialized constant in integration test
I am seeing weird issues when trying to create integration tests. Here
is a very simple example of something that is failing. The
assert_redirected_to, and other methods, fail with this or similar
exceptions.
I have tried requiring both ''application'' and ''listings_controller'', but
neither solves this problem, although the exception changes.
Anybody know
2006 Mar 15
2
link_to_remote issue after upgrading to rails 1.0
Hi
I''ve only recently noticed my notebook was using an old version of rails
(0.13), and so upgraded it to 1.0 (this is on gentoo linux).
The upgrade has broken some previously working code, and I''ve not been
able to find a work-around.
Previously the following call:
<%= link_to_remote("some string",
:update =>
2007 Oct 04
0
Module + Constant Issue
I ran into the following problem in my application when I went from my
dev environment to my staging environment. Modules and classes that
were previously autoloaded just fine in dev ended up with a strange
error in staging:
NameError: uninitialized constant Rails::Initializer::...
Weird.
Well, I managed to reproduce it, and here is the procedure. I''m
wondering if the approach
2006 Jun 21
7
sortable tree problem
Hello,
I''m having a problem when I set the tree option to true on Sortable.
If I set the option to false my remote call works fine, but once I set
it to true, I get some weird log errors from Webrick...
undefined method `update'' for "11":String
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in
`build_deep_hash''
2008 Mar 06
3
cache_sweeper
Hi,
Why is cache_sweeper not a documented method? I was pretty sure it
used to be, but I could be wrong. I can''t seem to find any
information on it anymore in the online docs.
As a side note, looking at the code for cache_sweeper it appears to
only work with the :only option, not :except (ignores it)... what''s
the reason for this?
Thanks,
Andrew
2006 Jul 23
1
some question about ''observer_field''
Is the observe_field (ActionView::Helpers::PrototypeHelper )
can be apply to any html tag? (such as div)
I tried to apply ''observe_field'' to observe the content of
<div> tag, but, as the observed <div>''s content was changed,
there was nothing happend.
for example (in test.rhtml):
<%= link_to_remote "test", :update=>"content1",
2006 Jan 12
0
testing
I''m looking for a good way to make all of Rails'' inbuilt helpers
available to my custom Helper while I''m testing it.
The Helper I''m testing is EditorHelper. EditorHelper itself relies on
some of Rails'' inbuilt Helpers, such as JavaScriptHelper and
UrlHelper. These are automagically available when called on within an
ERB template, but not when called by
2006 Jan 13
0
testing Helpers
[I''m reposting this. The subject wasnt complete and misleading in my
initial post (''testing'')]
I''m looking for a good way to make all of Rails'' inbuilt helpers
available to my custom Helper while I''m testing it.
The Helper I''m testing is EditorHelper. EditorHelper itself relies on
some of Rails'' inbuilt Helpers, such as
2013 Jul 10
4
Decoupling of ActionPack
Hello!
Are the plans of splitting ActionPack for several gems (AbstractController,
ActionView, etc)? Like https://github.com/rails/rails/pull/7356 ...
I.e. I know gems that are needed AbstractController only... And they are
forced to require the whole ActionPack...
Thanx.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To
2007 Sep 21
0
Rails plugin: jQuery Helper for Rails (jq4r)
Hi all,
I''ve just written a Rails plugin: jQuery Helper for Rails (jq4r) and
it works as ActionView::Helper::PrototypeHelper and
ActionView::Helper::Scriptaculous but jq4r generates the jQuery code
instead.
I''ve already put the project on Google Code and RubyForge:
http://jq4r.googlecode.com/
http://rubyforge.org/projects/jq4r/
If somebodies are interested in this project,
2007 Mar 03
5
url_for and arrays parameters (diffs between rails 1.1.6 and 1.2.2)
Hello,
I posted this to the main rails list
(http://www.ruby-forum.com/topic/99845), but haven''t received any
replies yet, so maybe this question is better suited here. Sorry if
this has been brought up before, I couldn''t find any previous
discussion on this.
To summarize the post...
When using the latest Rails (1.2.2)
I''m passing an array to url_for like so...
2010 Apr 03
0
Deployment problem with apache + fastcgi
Hi! I''m from Russia. It''s my first post in this forum. Execuse for my
bad language, but i hope you''re help me!
I try to deploy rails app on apache + fastcgi hosting.
.htaccess file contents:
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
2007 Sep 04
4
Could someone take a look at #9477 (new fieldset_tag helper)?
Hi everyone,
I just submitted a patch for a new fieldset_tag helper.
It''s helpful and encourages developers to follow web standards, etc.
"+1"s welcome :-)
http://dev.rubyonrails.org/ticket/9477
Cheers
Damian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.