Displaying 20 results from an estimated 1000 matches similar to: "Problem geting web interface to work"
2007 Oct 23
2
to_json inconsistency?
Hello,
ActiveSupport::JSON::Variable.to_json is the only to_json without an
"options" parameter. Is this intended?
For example, this code in a .rjs
page[@user.dom_id].visual_effect :drop_out, :afterFinish =>
ActiveSupport::JSON::Variable.new("foo")
fails with
ActionView::TemplateError: wrong number of arguments (1 for 0)
On line #7 of
2008 May 08
5
Simple Generated Component Suddenly Gives Errors
What am I doing wrong here when I wrote a very simple component so :
C:\ruby\letter4sure>ruby script\generate scaffold pso_printers
printing_setting_id:integer pso_id:integer
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/pso_printers
...
Then I did a rake db:migrate
And then I simply went to take a look at the url for the above :
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
Hey,
i am currently upgrading a Rails 2.1 app to 2.3 to benefit from Rails
engines.
The app requires rendering javascript updates to strings, which does
not work
with 2.3 anymore:
data =
ActionView::Base.new(Rails::Configuration.new.view_path).render(:update)
do |page|
page["div[id=''foo'']"].removeClass("bar")
end
whihc results in an error because the
2009 Sep 10
1
undefined method `protect_against_forgery?'
When I use plugin ''railstree'' (http://www.hashcode.eti.br/?p=91) as
following code:
node = Node.new :label => menu_item.name,
:link_to_remote => {
:base => self,
:update =>
"container",
:url => {
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1.
Having this page:
<h4>Editing project</h4>
<% form_for(:project, :url => project_path(@project), :html =>
{ :method => :put }) do |f| %>
<p>
Name <%= f.text_field :name %>
Date <%= calendar_date_select :project, :target_date, :time =>
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys,
I was wondering if you are able to have a link_to_remote, having an
image_tag and the link_to_remote has a mouseover event that updates a
div. Does the image_tag need the mouseover event? I currently have:
<%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update
=> "big_pic", :onmouseover => {:action => :color_change, :id =>
@p_image.id})%>
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
Hi,
this snippet
<%= submit_to_remote(''create_button'', ''Add Phone'',
:submit =>
"phone_form",
:url =>
send( "#{@phonable_type.to_s.downcase.singularize}_phones_path",
@phonable_id),
2006 Jun 07
2
How to send post data with link_to_remote?
Hi,
I''m trying to send a post body with my link_to_remote call.
Prototype supports the ''postBody'' option, but I can''t seem to get
link_to_remote to set that.
Here''s what I''m trying:
link_to_remote ''move up'',
:url => { :controller => ''upload'', :action => ''position_ajax'', :id
2006 Jun 02
0
Warning messages after upgraded from rails 1.0 to 1.1
Just upgrade from rails 1.0 to 1.1
Everytime I run the unit and/or functional tests, I got the following
messages. Is there something I need to do to remove? I am not sure where
to start. Thanks in advance.
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
2006 Nov 04
0
rake db:migrate is semi-broken
Whenever I run rake db:migrate I get the following "error":
antrover:~/Sway/Projects/mi7/branches/sway_dev_mi7 dhoefler$ rake db:migrate
(in /Users/dhoefler/Sway/Projects/mi7/branches/sway_dev_mi7)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15.
Here are the errors:
gregg@gregg2 ~/user/DMS $ rake test
(in /home/gregg/user/DMS)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:2: warning: method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:11: warning: method
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...
2008 Jul 01
4
Errno::EIO - Input/output error
hi all,
my appl works well but i get the following error suddenly for few
pages. to resolve this, i had to restart the server everytime. then it
works fine for some time, but after some time it appears again. this is
happening contineously. i searched for solution on this, but didn''t get
much. can anybody help in this plaese? any help will be greatly
appreciated... i''ve pasted
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a
local variable to my partial. The below code leads to the following
error:
NameError in Residential_listings#new
undefined local variable or method `foo'' for #<ActionView::Base:
0x3fb53f8>
I am trying to call the variable ''foo'' in a partial called
_attachment.html.erb, which is nested in
2008 Jun 19
1
How to run unit tests for Rails
hi,
I downloaded rails as well as unit tests from:
http://svn.rubyonrails.org/rails/branches/1-2-stable/
bash-2.03$ cd rails-1.2.6/railties/
bash-2.03$ rake regular_test
(in /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties)
/u/liangl/ruby/JRUBY103/bin/jruby -w -Ilib:test "/u/liangl/ruby/
JRUBY103/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb"
2006 Aug 04
0
Rake migrate errors, but it still works
I get the errors below when running rake migrate, but it still works.
Is there anything to be bothered about? Some appear twice.
All of the below are installed from portage in Gentoo.
me@machine ~/Site $ rake migrate
(in /home/me/Site)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
2006 May 17
3
Rails "Application Error" with apache and mod_fcgid
Hello,
I have a gentoo system that I am trying to remotely develop rails
applications on using apache and fcgi. I created the simple hello world
example from Dave Thomas'' book to test the system and I receive an
"application error" when I try to go to the page. I can startup webrick
and use links to view the page just fine, but nothing doing through
apache.
I have
2007 Dec 20
3
How-to spec this helper method?...
Hey gang,
I have this dead-simple method defined in a helper:
def add_category_link(name)
link_to_function name do |page|
page.insert_html :bottom, :categories, :partial =>
''category'', :object => Category.new
end
end
Where, and mostly how, would I spec this? I haven''t been able to find
how to stub the rjs in a helper spec, so
2008 Aug 08
1
Jabber Notification
Hi all,
Some of my team are using ubuntu for their desktop (i.e. no cctray
support), and email notification just ain''t quick enough for me, so I
need to set up our ccrb to support jabber notification, I guess.
I read in the documentation (http://cruisecontrolrb.thoughtworks.com/
documentation/getting_notified) that there''s a jabber plug but I
can''t see one in
2013 Feb 10
0
Nested attributes doesnt get updated
Hi
Am building a nested form and my code works fine with sqlite3 but throws
errors when using Oracle during update action.
Am getting the following error:
ActiveRecord::RecordNotFound in AWRequestsController#update
Couldn''t find WADetail with ID=5000000015 for AWRequest with ID=5000000022.0
Request
*Parameters*:
{"utf8"=>"✓",