similar to: validating model without saving

Displaying 20 results from an estimated 7000 matches similar to: "validating model without saving"

2005 Dec 25
2
[repost] newbie questions
Hi all, I''m following the shop example in ''Agile Web Development with Rails''. I would like to extend the checkout screen, in such a way people can change the number of items they have selected in there cart. In my controller I have: def checkout @cart = find_cart @items = @cart.items if @items.empty?
2006 Jan 13
3
related drop down list / ajax
Hi all, I''m trying to create a related dropdown box: In my view: <select name="category" id="category"> <option value="">Select category</option> <% @categories.each do |category| %> <option value="<%= category.id %>"> <%= category.title %> </option> <% end %>
2006 Aug 13
3
escape block using red cloth
Hi all, Is it possible to configure red cloth to escape a block such as: ------------------------------------------------------------------ Hello, _this_ works *beautifull* [code lang="ruby"] def foo bar end [/code] ------------------------------------------------------------------ The text in the [code] block should not be parsed by Red Cloth''s to_html method. I cannot
2006 Feb 01
5
lighttpd not starting on os X (intel)
Hi all, I''m followed the instructions written here to prepare my new iMac for Ruby / Rails developement: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger When I run script/server I get the following output: harm-de-laats-computer:~/rails/test harmdelaat$ script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) =>
2006 Jul 01
22
TextDrive complaints
Hi all, I have deployed my Ruby On Rails application on TextDrive. At first everything seamed to be fine. However, lately, response time of my application is incredible slow. Worse, lately there is also a lot of downtime. I have contacted their support desk, however, they do not respond (at all, or very, very late). Has anyone else these experiences with TextDrive? And if so, what did you do
2006 Jan 09
11
Fast Ruby Debugger?
After developing in Java for years in IDEs I''m starving for a decent ruby debugger. When learning new codebasesI find it invaluable to use the debugger to step through the system and see how things work at runtime. Using RDT in Eclipse is fine but it''s excruciating to wait minutes for the default debugger to finally reach my breakpoints on tests that normally take seconds to
2005 Dec 15
3
session scope?
Hi all, I''m working on a Rails application. In this application I retrieve a list of ''brands'' using a method somewhere defined in my controller: private def get_brands @brands = Product.find_by_sql("select distinct brand from products"); end However, I display this information in a listbox in the template for my controller. This means @brands
2006 Mar 08
12
favorite FTP client of railers
Hi, Which FTP client would fit in nicely with OS X and Textmate. Thanks, Peter
2006 Jul 22
16
capistrano deploy failing on /public/system "No such file or directory"
trying like mad to get this to work. cap setup works fine, sets up the dir structure on dreamhost (tho setup doesnt create the "current" symlink). on deploy, i get: * executing "rm -rf /home/USERNAME/dwightnight.org/releases/20060722060159/log /home/USERNAME/dwightnight.org/releases/20060722060159/public/system &&\n ln -nfs /home/USERNAME/dwightnight.org/shared/log
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all setup. A couple of issues though: 1. Is the Ruby 1.8.2 install by Apple still botched or has that been fixed? I recall someone had fixed the rbconfig.rb to get it working. Is this something I still have to do? 2. Does anyone know if Locomotive is using the uniersal binaries, or is it targetting PPC yet? I couldn''t
2006 Jan 02
2
charting (freechart)
Hi all, We are a Java development team, but we are considering rails for our next project. However in this webapplication I need to do a fair amount of charting. In Java we used JFreechart (http://www.jfree.org/jfreechart/index.php) for this purpose. What are my options for charting in Ruby? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 25
7
Ruby on Rails Presentation Wed (1/24) night in Menlo Park, CA
I''ll be giving a 60 to 90 minute presentation covering Ruby on Rails in the San Francisco bay area. Anyone interested in a quick introduction to Rails is welcome to come. The talk will be focused on Rails, but we''ll also field questions about how the rest of our site (Zvents) works. Here are the event details: http://www.zvents.com/events/show/211380 If you''re
2006 Mar 10
8
XML Databinding frameworks
Are there any XML databinding frameworks available for Ruby / Rails, such as Castor or JaXB for Java? Also are there framework such as Apache Axis for WebServices for Rails or Ruby? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/3cf0cfd3/attachment.html
2006 Feb 09
4
Setting up Ruby + RubyOnRails on the new intel mac (any feedback?)
Hi I''m about to attempt to setup RoR on an iMac powered by an Intel core duo. Before I start, is there anyone who would have some feedback about a similar setup (and likely, the caveats hidden down there) ? thanks! Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 03
5
writing my own generator
Hi all, I wanted to write my own generator. What would be a good starting point. Is there any documentation on this, Best practices, etc? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060203/c64c4730/attachment.html
2006 Apr 02
1
switching environments
Hi all, I created a Rails project on MS Windows. Now I''m on my Mac, and would like to extend this existing project. However, I can not run the script/generate, because the scripts all reference the windows directory of Ruby. Is there an easy way to switch to the Unix environment? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 17
1
Effect.appear
Hi all, Is there a way to use the onLoad event of a page to start the Effect.appeareffect? I''m trying like this, unfortunatly this does not work: <html> <head> <%= javascript_include_tag :defaults %> </head> <body onload="new Effect.Appear(this);"> My Body </body> </html> Any idea how to get this to work? Kind regards, Harm de
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all, I followed the example on: http://www.roryhansen.ca/?p=9 for creating related drop-down lists. However, this code actually creates HTML in the controller component: @albums = Album.find_all_by_artist_id(@params["artist_id"]) @html = "<select id=''album_id'' name=''album_id''>" @html += "<option
2008 Jun 12
7
How to change the class of data?
Hi all, I have some data x, which are actualy consisted of numerical enties. But the class of this matrix is set to be "factor" by someone else. I used "class(x)", it turns out to be "factor". So I can not calculate them. How can I turn them into numerical data so that I can apply math operations on them? Thanks a lot for your help. Selina [[alternative HTML
2003 May 28
1
the most serius problems [part 2]
hi, the second thing is the webmail. we use squirrelmail. actualy I don't know whose fault is, but they told that them imap server's:-) first problems is that those mails which has empty body (even if they has an attachments) simple not shown in the mail list (as they even not exists). it'd be nice to check this and find the reason of the problem. this happend with more people.