search for: 9udqfwiw

Displaying 13 results from an estimated 13 matches for "9udqfwiw".

2005 Nov 22
3
Idiom for submit button?
What is the rails idiom for submit buttons on forms? All other field types have helpers, but button_to creates its own form, so should not be used. I''ve looked in "Agile Web Dev. with Rails" but can''t see what I should do instead. Is this "difficult" because it runs counter to AJAX type forms? And, related, is there a way to ensure that hitting return in
2007 Sep 07
7
Rails VERY slow on Vista
When I try to script/generate something I have to wait above 2 minutes befor I get result. Is there some way to fix this? I have Intel Core 2 Duo 6420 with 2GB RAM. On my Slackware Duron 800 MHz it takes about 45 sec... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2005 Aug 19
2
data validation
I''m trying validate date before they''re stored into the DB, but it seems, validation doesn''t work.. my model looks like this: class Company < ActiveRecord::Base has_many :contacts, :foreign_key =>''company_id'' has_and_belongs_to_many :categories, :join_table => ''company_to_category'', :foreign_key =>
2008 Jul 16
2
New transactional enterprise e-commerce web site
We are close to releasing a high-volume, multi-lingual, e-commerce site in Ruby on Rails that has previously been written in an alternative Java framework (e.g. servlets and JSP). This is a real-time 24/7 betting and gaming web site based out of Gibraltar in Europe. When we embarked on this project, we really wanted to find examples of other high-volume web sites that had adopted RoR. We did
2005 Dec 13
4
find()ing rows w/ NULL columns?
Agile Web Development with Rails doesn''t seem to have NULL in the index [or my eyes have failed me again], and web searching turns up lots of SQL statements containing NOT NULL. I have a table of loans, and I want to record when something was loaned and returned. The loan date can''t be null, or there''d be no entry in the table. The return date must be something
2007 Jul 24
2
reusing partials
Might be asking a daft question or missing something obvious here as I''m a bit of noob at this, I''ve got the code below in a partial and am using it to display and attach skills to degrees which is working fine, I now need to do exactly the same thing for interests and was wondering if there is any way to pass the partial a parameter which I can then some how be used to replace
2007 Jul 25
5
editing multiple models in one form
Very new to this but would appreciate a hand as this is driving me mad, I''m trying to update both degree and assigned from a single form, the degree section updates fine but assigned just retains the same values, any help much appreciated! my edit.rhtml file looks like: <h1>Editing degree</h1> <%= error_messages_for :degree %> <%= start_form_tag :action =>
2005 Nov 22
2
Error messages: relative paths seem weakly handled?
I create my rails app, with modifications to the default from a script. Having had to upgrade rails once, and knowing that this is likely to happen again because of the rapid updating of rails, it seems the most sensible way to do it. As a result, I often do /bin/rm -rf csestore and then run my script from another window to repopulate it. So naturally, to save having to cd into csestore, and
2005 Dec 16
0
Sybase Adaptive Server Anywhere (SQL Anywhere Studio)
I have just done a Rails database driver for Sybase Adaptive Server Anywhere (SQL Anywhere Studio) If interested see http://www.iqx.co.uk/mhs/sybaseanywhere_adapter.zip or the Wiki. It is based on the SQLServer one. A bit of tweaking and plenty of testing needed, but works ok with the published examples. Any thoughts/advice welcome. Michael Scott
2004 Dec 31
2
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods?
Am I opening myself to some security vulnerability if I unprotect the Controller classes'' redirect methods? I merrily wrote a (specific to my university) authentication filter as a separate class. As part of the authentication process it needs to re-direct the user to a university server to log in. This all works fine except that the redirect_to methods of a controller are all
2007 Jul 12
0
[retry] fixture_references: "Mysql::Error #HY000"? (fwd)
I''m resending this with additional information, as I''ve had no response. I''ve been trying to use the fixture_references plugin, and I seem to be getting lots of: 1) Error: test_truth(DeviceTest): ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ''description_id'' doesn ''t have a default value: INSERT INTO devices (`id`) VALUES (2)
2005 Nov 23
15
:conditions => ... formatting
With code like: if @params[:pnumber] =~ /\s*p?(\d+)\s*/ if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"", {:pnumber => $1}]) @borrower = student elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"", {:pnumber => $1}]) @borrower = emp else
2008 Feb 17
7
Calling an external API as quickly as possible
Hi I''m a Java developer working with a team that''s moving over to Ruby and Ruby on Rails - we''re really excited! We are writing a replacement for a large, java-based, e-commerce website for a client who is based in the United Kingdom. This will be the first web site of its kind written in RoR. One of the things we need to do is to access various external