search for: orgt

Displaying 20 results from an estimated 22 matches for "orgt".

Did you mean: org
2009 Mar 28
10
Use fixtures within fixtures?
Heya, I''m using globalize2 and have following problem with my fixtures: categories.yml: one: parent_id: two color: #ff00aa two: color: #00ff11 three: parent_id: two color: #ab00ab category_translations.yml one-en: id: one locale: en name: Cars one-es: id: one locale: es name: Coches two-en: id: two locale: en name: Start two-es: id: two locale: es
2005 Mar 10
4
:anchor won''t work in 0.10.1
Anyone else having problems with :anchor? Until 0.10.0 it was working fine but with this recent update it''s just not doing anything. Thanks, Pedro
2009 Apr 24
2
plugin loading
I just updated from Rails 1.2.0 to Rails 2.3.2 and none of the app plugins seem to load. The server starts without any problems, but none of the plugin code is available. Help! -- Posted via http://www.ruby-forum.com/.
2009 Apr 22
4
help with exceptions
Hello, I was trying to to write a simple ruby program for exceptions. My code is: class ABC begin alpha = ABC.new alpha.foo= [1,2,3] puts foo.inspect.to_s NonExisting raise "all other exceptions" rescue Exception => NoMethodError puts ''Hello'' puts $ERROR_INFO.inspect rescue Exception => NameError puts ''goodbye'' puts $ERROR_INFO.inspect else
2008 Jan 01
2
Easiest defense against SQL injection in object creation?
I''ve been scouring the web for suggested Rails defenses against SQL injection, but I haven''t found much on the object creation part. Certainly using attr_protected, etc., is a good way to prevent unwanted fields from being modified on the new object (if you''re passing a hash as creation parameters), but what about escaping the POSTed info before saving? Couldn''t
2009 Nov 10
6
Master/detail report with Rails and Ireport/JasperReports
Hi all, has anyone made it already? -- Posted via http://www.ruby-forum.com/.
2009 Jan 05
3
Plugin not found: ["acts_as_list"]
I am trying to install acts_as_list in a rails 2.2.2 project but when I try the following: ruby script/plugin install acts_as_list I get: Plugin not found: ["acts_as_list"] I had to download the acts_as_list plugin from the github because it isn''t included in Rails 2.2.2. The files are in my vendor/plugins/acts_as_list folder so I have: lib/active_record/acts/list.rb
2009 Aug 16
4
How show validation errors in form_remote_tag?
I suspect this has been asked 400 times, but Google yields 2-3 rather complex gymnastics in blogs (and possibly dated), and searching list archives on ruby-forum proves kinda useless. Using standard forms, it''s fairly easy to use @object.errors[:field_name] in the form to embed an error message right next to the field that has the invalid entry. The controller uses a simple conditional
2009 Feb 05
6
get # of errors in error_messages_for
hi everyone here i go again, i have problem we error message validation here is the sample of my code: error_messages_for :user, :header_message => ''X errors, please find red mark'', :message => ''Following errors were found:'' the problem is that how where going to get the value "X errors" or the number of errors if they have when the is
2008 Oct 08
5
schema.dump chokes on RAW type
I haven''t seen anyone mention this yet. The tail end of the migration process is a call to schema.dump. Our primary keys are uuids and these choke schema.dump on both oracle and postgres. The latter fails silently (skips three tables) while the former complains about the RAW(16) in each of the three tables. Anyone had a similar experience? -- Posted via http://www.ruby-forum.com/.
2008 Nov 15
4
data not being saved
I am trying to save data entered in a form and nothing seems to be saving. What do you I have to look at to ensure everything is set-up correctly? I have looked in my database.yml file and all looks good and the database that I am trying to use exist. Thanks, -S -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2009 Apr 01
4
permission denied errors with rake db:migrate
I am at a loss here and hoping for some advise on where to begin looking with a series of errors I am suddenly getting when trying to rake: "anything goes here" .. lil-loco:/rails/cem craigmartin$ rake db:migrate (in /rails/cem) rake aborted! Permission denied - /rails/cem/db/schema.rb This is the current error. lil-loco:/rails/cem craigmartin$ rake db:schema:load (in /rails/cem) --
2009 Feb 08
2
SocketError in EmailController#correspond
SocketError in EmailController#correspond getaddrinfo: no address associated with hostname. Please see above, these are the errors i get when i try to email a user on my networking site. Can you help please. Actionmailer address = smtp.vodafone.ie Below is code used for the email controller in apps/controllers/email_controller.rb There doesnt seem to be any code missing. Can someone help with
2008 Dec 02
4
Am I wrong or is fields_for not working right in Rails 2.2.2
I may be totally wrong about what the fields_for method is supposed to do, but for some reason I thought using it scoped an object around an association. For example, I have a User class and when you''re creating a new user I want to use fields_for to add a BillingAddress to the user like so: <%- fields_for :billing_address do |billing_address_form| -%> <%= render :partial
2009 Oct 04
2
no such file to load -- restClient (MissingSourceFile) HELP
i don''t get what is going on here. if i run the restclient command that starts an irb with restclient it works fine but when i try to load it from environment.rb with require ''rest_client'' this is what i get... it''s driving me batty. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load --
2009 Jun 25
7
Join Tables
I just have a few questions about join tables. From my understanding the following applies (correct me if I''m wrong): 1.Join tables are always named with the names of the two associated tables, in alphabetical order, separated by an underscore. 2.The foreign key fields are named with the name of the table they are referencing, with _id appended. 3.The foreign key is referencing a
2009 Feb 06
4
Full Ajax Application
Hello, I''m a newbie here... please... can anyone help me about FULL AJAX ? for example if i''m scaffolding a simple model and controller for product which only have 1 field for NAME:STRING with the command : script/generate scaffold Product name:string and for the generated code I like to turn it into a full ajax app, for example if i''m click the NEW or EDIT link it
2009 Jul 02
7
Params Merge and URL sorting/pagination
Hi all, Here''s my general setup on the specific template I''m having issues with: will_paginate for pagination custom methods for sorting 1-form for team search 1-form for search by date When searching for a team for instance, the url returned will be: /rushing_offenses?search=Florida When searching by date, the url returned will be: /rushing_offenses?compiled_on=2009-07-02
2009 Jun 11
8
before_create return value breaking object.save: rails bug?
I know that usually when people say ''i think i found a bug in rails/ruby'' they''ve done something dumb. I''m wondering if this is the case here, but this does seem like a genuine rails bug to me. In my user model i have a few different before_create callbacks. In one of them, if it happens to return false (just because the last statement in it evaluated to
2009 Feb 12
4
Rails & unixODBC
Hello, I decided to embrace getting a new Rails application to see an existing MSSQL database and trying to get unixODBC, freeTDS, and ActiveRecord able to query my MSSQL database. I''m following the procedure outlined at http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux but my system (Ubuntu 8.10 - Intrepid Ibex, Rails 2.3, Ruby 1.8.7)