similar to: Bug in shop demo

Displaying 20 results from an estimated 3000 matches similar to: "Bug in shop demo"

2005 Mar 06
8
Tutorial about XMLHttpRequest+Rails
Hi All I just finished writing up a tutorial relating my experience developing a system to edit line-items ''in-line'' in my Rails application using XMLHttpRequest. I thought this might be of interest to some readers of this list... Check it out at http://hieraki.goodlad.ca/read/book/1 Thanks! Dave -- Dave Goodlad dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2006 Mar 16
6
Unknown image type: VMX
Hi all I am trying to get VMX guests working on my new server here. The machine has a Pentium D 920 on an ASUS P5WD2-E motherboard. I''ve updated the BIOS to the latest 0401, which added the virtualization option. I am running a fresh installation of Gentoo (64-bit). When I try and run ''xm create'' on a vmx config file, I get the following error: Error: Error
2006 Dec 13
4
RSpec and simply_helpful
Hi All I''m having some problems running my view specs when using simply_helpful. I have it semi-working via the following: module SimplyHelpfulHelper def self.included(base) base.send :include, SimplyHelpful::RecordIdentificationHelper base.send :include, SimplyHelpful::RecordTagHelper end end context "The index template" do setup do @shift =
2006 Dec 12
3
Stubs breaking other things
Hi All I''m working on converting some existing controller specs to use mocks and stubs rather than real ActiveRecord objects in a Rails project. In one of my controller actions, I use a database transaction. So, the obvious thing to do is have this in my setup block: Project.stub!(:transaction) Firstly, is there an easy way to have that stub yield to the block passed to any
2005 Mar 07
2
erb and builder in same view ....
Has anyone tried using erb and builder in the same file? Either .rxml or .rhtml? I''m wanting to do some think like the following: xml.div(''id''=>''menu'') {|xml| link_to "create race", :controller=>"derby", :action=>"new" } Thanks, -- Tom. -- "Nothing will ever be attempted, if all possible objections must
2006 Jan 13
5
Effect together with ...firstChild - can''t get it to work
Hi, I am relatively new to Rails and I can''t get the following to work: what I am trying to do is to make the first item of a list to flash: var item = $(''items'').firstChild; new Effect.Highlight(item); I get the this Javascript error message: this._base has no child (effects.js, line 445) But I am able to do this without any problems: var item =
2005 Nov 07
2
Font rendering in Firefox after effects
Hi all I''ve started using some of the scriptaculous effects here, and have noticed something weird. Whenever I use one of the effects, it causes many of the fonts on the same page to rendered with a lighter weight (ie: "less bold"). Has anyone else noticed a similar effect in Firefox? I use 1.5b1 on Mac. This seems to be a common bug in moz-based browsers, as Camino does
2005 Mar 06
2
Using url_for in ActionMailer templates
Hi All I am just adding some basic e-mail notices to my Rails app using ActionMailer, and have one small issue. I want to provide a confirmation URL to users who sign up for an account. I can obviously just hardcode the URL and append the confirmation code to it, but I''d much rather be able to use something like: url_for(:controller => ''authentication'', :action
2006 Jan 17
2
Getting data back from thread spawn
I have a script that needs to be run, that in some cases will take longer than the server timeout. So, I''m thinking just throw the script in its own thread, but I need to be able to get the data back from that thread and refresh the page with the data returned. Any suggestions how to do this? Thanks, PJ
2007 Feb 22
9
specking, speccing, or spec''ing
I vote for spec''ing. Anybody else?
2006 Apr 27
15
Which is faster, calling helpers or rendering a partial?
Using partials is a nice way to separate chunks of content into separate pages as opposed to building strings in helpers, but I''m wondering which is faster. It scares me when I see stuff like: Rendered users/_public (0.00051) Rendered users/_public (0.00009) Rendered users/_public (0.00008) Rendered users/_public (0.00008) Rendered users/_public (0.00008) ....50 more times Has anyone
2005 Jun 24
9
new mysql gem
Hi everyone, For those who have/had problems with Webrick not properly closing MySQL connections, there is a new MySQL gem. (Actually the version was released some time ago, just nobody took the time to make a gem) So run "gem update" or just "gem install mysql" to update (not sure if the latter also updates). Special thanks to Tobias Luetke, who forwarded the gem to Chad
2006 Jan 18
6
Consistent testing with methods that depend on Date.today
Hi everyone I''m building an app in which quite a bit of data is dependant on dates (and times), and I have logic that depends on when ''today'' is. I''m trying to get some better functional tests written, and am unsure of the best way to approach it. The problem is that I want the tests to run against the same data every time, whether I run it on Tuesday or
2005 Oct 21
21
PHPonRails ?
I''ve have a very tight schedule project that MUST (not my option), be developed in PHP. Is there a Rails based framework for this platform? I like the Rails way of things, but in this case, I cannot choose the programming language, so please don''t offend me :-) Thanks in advance, Alessandro _______________________________________________ Rails mailing list
2006 May 05
1
Help with ActiveRecord
Model: class AdminQueue < ActiveRecord::Base set_table_name ''adminqueue'' end Interacting with it in script/console >> AdminQueue.new => #<AdminQueue:0x240a910 @attributes={"topic_id"=>nil, "resolved"=>nil, "updated_on"=>nil, "action"=>nil, "type"=>nil, "post_id"=>nil,
2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
The code that comes with the plugin uses a method that looks like this: def password_required? crypted_password.blank? or not password.blank? end with validations that look like this: validates_presence_of :password, :if => :password_required? validates_presence_of :password_confirmation, :if => :password_required? validates_length_of
2006 Apr 28
1
startcolor and endcolor not working
In my RJS template this works: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5} but not this: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5, :startcolor => "#FFFFFF"} Am I misunderstanding how to pass in additional parameters? _______________________________________________ Rails-spinoffs mailing list
2005 Apr 23
7
Validation question
Hi all, Is there a way to invoke validations at times other than save, create and update? I know that I can do this by writing my own validation checks using errors.add_[blah], but I''d like to leverage the existing validation code. What I have is two sets of fields in a record, set A and set B. Both sets must be validated on record create. However, the trouble is that after
2006 Feb 24
3
New to Ajax
Hello, I''m very new to ajax and was looking for advice on scriptaculous at their website and they suggested i join your mailing list, I hope that was the right thing to do, I haven''t installed ROR yet but i have downloaded the needed one-click installer which i will setup sometime soon, until such time i would like to work with scriptaculous in its native form in php files, the
2006 Feb 26
14
Question abour Draggables & Droppables
Hi, What I need to know is how to change revert:true to revert:false from a draggable after I drop it on a droppable so it doesn''t return to its original place. Something like: [CODE] <!-- Draggable image --> <img alt="Product" id="item" src="icon.png"> <script type="text/javascript"> new