Displaying 20 results from an estimated 20000 matches similar to: "Time to split the list?"
2006 Jul 22
5
Prototype error. replace content inside a <TR> in IE
Does anyone know of a fix for the issue with prototype and replacing
table rows in IE?
render :update do |page|
page.replace "row_#{params[:id]}", :partial =>
''wireless_request/wrequest'', :locals => {:wrequest => @wrequest}
end
This ends up making IE throw an "rjs error [object error]"
Searching around I found a couple of posts about
2006 Jan 02
19
AR: How to store and restore in YML.
Hello-
I have a database with entries that are segmented by customers. I would
like to be able to store / delete / restore a particular customer''s
information. I will need to rebuild the rows on restore and also
rebuild the associations for the different tables.
For example,
customer {
id
name
}
companies {
id
customer_id (belongs_to)
name
}
contacts {
id
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set.
My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2006 Mar 17
1
MySQL-Front strangeness - help needed, esp. from newbies
Greetings to all,
I''ve had two reports of strange behavior from MySQL-Front this week from folks new to RoR who are working through the IR tutorial. I''m digging into it and would very much appreciate hearing from anyone else that''s seeing this. Newbies are in an especially good position to help here, as it appears that the problem lies in a recent release of
2006 May 31
5
Sharing code between some controllers? Staying DRY
Hi,
I have four controllers: one for the store front and three for the
store admin. In each controller I have copied and pasted exactly the
same code. It is a method called redirect_to() to override Action
Controller''s redirect_to(). Copy and paste is bad. I can think of two
options but I don''t know how Rails will feel about them.
Option 1: Can I create an intermediate
2006 May 16
5
how to redirect after sendfile?
Greetings!
Is there a way to get RoR to redirect_to another action after doing a sendfile?
My little app lets the user enter a bunch of data and then creates an XML file from it. I''m using sendfile to let the user download the XML file. Once they download the file I want to take them to a new view that presents a logout button that will trigger a cleanup. But it looks like RoR
2006 Jan 19
7
validates_numericality_of positive integer
Hi,
What is the simplest way to validate a positive integer?
validates_numericality_of :foo, :integer_only => true
how do I add the positive part? Do I need another validation statement
for pattern matching or do I have to write a validate() funciton for
my model?
Thanks,
Peter
2006 Jul 12
3
Ajax, the Back button, and Sweepers
I''m working on an app that''s basically forms and that makes fairly heavy use of Ajax. As a result of the Ajax usage, if the visitor uses the back button they get the page as it was originally loaded, not as they left it. I''ve looked at the Sweeper documentation and can not tell for sure that it''ll do what I want, which is to force an unconditional reload from
2006 Aug 19
22
Wazzup with the rubyonrails-talk Google Group?
I just got a Google Groups notification that I had been
subscribed to http://groups.google.com/group/rubyonrails-talk.
Looking at the page, it appears that about 4300 folks have
been subscribed. However, I saw nothing about this on
rails@lists.rubyonrails.org. Wazzup?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm@cfcl.com
2006 Apr 26
10
save new model with child model
Hi,
I am having a problem saving a new model that has an associated child
model. If a new ticket is being created and will have one comment to
go with it then I tried this in my action
@ticket = Ticket.new(params[:ticket])
@comment = Comment.new(params[:comment])
@ticket.comments << @comment
if @ticket.save
@notice = "Ticket added. Thanks for
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi,
I''m interested in using a currency conversion web service in my rails
app. Does anyone have a free service that they use and like? I found
this one
http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10
I''ve tried to make a simple, plain Ruby script to connect to this and
get a conversion rate without success.
How do I integrate a webservice into my rails app? I
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi,
A store front a customer wants to GET /product/5/show. But for the
application this is really GET /cart_item/new/5 or even better
/cart_item/new?cart_item[product_id]=5
When the customer clicks add_to_cart they POST /product/5/show so that
the url doesn''t confuse the user when any validation errors occur. But
for the applicaiton this should be POST
2006 Apr 10
2
RJS newbie - need help with iterating / existence test
Greetings!
I''m new to Ajax and am trying to get a basic app working as a vehicle for learning it. The app is an extension of the cookbook tutorial. My intent is to be able to add a list of ingredients for a recipe. The page to add ingredients uses Ajax. As ingredients are added to the page they''re displayed in a "green-bar" format like that used in the Depot
2006 Jan 26
8
switching to edge rails
Hi,
I want to start using has_many :through. I think that eventually I''ll
be removing all uses has_and_belongs_to_many from my project.
Here is my situation
I''m using SVN
I want to use edge rails
Reading the wiki about switching to edge rails[1], I can''t figure out
which combination of subsections I must perform.
Do I want edge rails to reside in the vendor
2006 Apr 01
4
problems getting ActionMailer working (on server)
Hi,
I''ve read the Agile Rails book''s chapter on ActionMailer a few times.
Seems pretty straight forward. Unfortunately I can''t get my
application to actually send mail.
I uploaded my application to the web server and tried to get a mail
message sent. Nothing happened. I looked in the log file and it says
Sent mail:
From: service@freedomkilts.com
To:
2006 Apr 26
3
catch all error for incorrect urls etc
Hi,
I am changing a very standard old school website to rails. When I make
the change to rails, all of the old urls will not be valid. If a
person has a bookmark to an old web page I would like them to be
directed to the front page of the new website www.domain.com. How do I
do this? Do I do something in routes.rb?
Thanks,
Peter
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to
get rid of all the .svn stuff.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html
2006 Feb 09
2
_marker in dragdrop.js
Hi,
I''ve been confused about the purpose of _marker in dragdrop.js for
quite a while. It doesn''t really look like it does anything with
ghosting on or off. I removed the mark method and didn''t discover any
problems. Is all the mark business a relic from some past idea?
Thanks,
Peter
2006 Jan 23
4
an image that is a clickable link?
Hi,
How do I make an image that is a clickable link the rails way? Is
there a view helper for this?
Thanks,
Peter
2006 Mar 08
12
favorite FTP client of railers
Hi,
Which FTP client would fit in nicely with OS X and Textmate.
Thanks,
Peter