similar to: Run method at the same class

Displaying 20 results from an estimated 400 matches similar to: "Run method at the same class"

2006 Jan 09
2
catch id from form and copy between objects
Hi all, Not completely sure what I''m doing, but I need to get data from another table based on and id. Below is some breakpointer output: irb> @params => {"project"=>{"project_description"=>"point2", "project_name"=>"break2"}, "action"=>"create_project",
2006 Jan 09
6
Nil column results, possible to ignore?
For a table "clients" there are city, state, and zip fields. However, for some clients we only have a state with no actual address. The following code throws a "You have a nil object" error when outputting my client list. Is there a way around this, short of writing a specific case for each possibility? <%= client.city + '', '' + client.state +
2006 Jan 10
5
IP Address
There''s got to be a simple answer: how do you get the IP address of a visitor in Ruby? Any help would be appreciated! -- Posted via http://www.ruby-forum.com/.
2006 Jan 05
2
Ruby On Rails Workshop in Zurich, Switzerland
I''m happy to announce a two day RubyOnRails Workshop in Switzerland, 27.-28. February 2006. Details can be found here: http://www.invisible.ch/static/47/ rubyonrailsschulung (german) cheers Jens-Christian -- InVisible GmbH, Langgr?tstrasse 172, 8047 Z?rich Phone: +41 44 401 09 30 http://www.invisible.ch http://not.invisible.ch -------------- next part -------------- A non-text
2006 Feb 16
1
Newby: Getting "unitialized constant SockServ" -- help
I can''t seem to find my error. I think it''s fairly basic. Do I have to initialize SockServ somewhere or is this error message really indicating something else? uninitialized constant SockServ C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'' #{RAILS_ROOT}/app/controllers/mindreadr_controller.rb:15:in
2006 Jan 08
1
Using many-to-many relations in tests
Hello, I have some many-to-many relations, I would like to use in my tests. But I''m not sure what I should put in the fixtures for it? How do I add those relations in the testing environment? Greetings, Gitte Wange
2006 Jan 09
1
Modifying script generated scaffold output Books/Authors
People, For my little book library db I find the rails script generated stuff fine for most of my needs but there is one thing I couldn''t figure out . . Part of the auto output of app/view/books/edit.rhtml is: <%= start_form_tag :action => ''update'', :id => @book %> <%= render :partial => ''form'' %> <%= submit_tag
2006 Jan 12
2
Rails 1.0 gem installation - rake version not supported on
gem install rails-1.0.0 the above commands gives an error saying it requires rake 0.6? what should be done here ? - Thanks - Nirav -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
3
multiple items on 1 column
Hello, I am trying to put multiple items in one column and can''t seem to get the syntax right. These are images and the image url''s are being pulled from a database. It seems that <tr></tr> is the trigger to go onto the next item. Here is the code from the controller: def list @items = Item.find_all end Here is the code from list.rhtml file: <%
2006 Jan 10
13
# of entrys in different months
right now im writing a weblog as my first project in rails. Most tings seems to be working great :), but there is (a least) one thing left i can''t figure out how to do. As most weblogs i would like to have an archive, whick looks like this: January 2006 (42) December 2005 (60) November 2005 (2) October 2005 (101) September 2005 (4) August 2005 (2) July 2005 (101010) where (x) is the
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All, If I run my unit tests individually using Ruby, they all work correctly. However, if I try to run them using "rake test_units", I get a bunch of error messages. The error messages appear to be caused by rake not loading any of the fixtures into the test database. I am using PostgreSQL on Windows. Does anyone have any suggestions? Many thanks, Bruce. -- Posted via
2006 Jan 08
6
J2EE equivalent
Gang- 1. Is there anything in Ruby that handles the .properites files similar to the J2EE application servers. Or do I need to define all of the properties as constants? 2. Is there anyway I can load some of my classes (such as singletons) during the startup? I am looking for the startup classes that J2EE containers provide. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Feb 12
1
one legend for multiple plots
Does anyone know how to make one legend above the plots drawn using par(mfrow=c(1,2)), ie in the margin? All I've managed is to put a legend inside the plot region of one graph. Although I could write text in the margin I don't know how to draw lines in the margin if I were to construct the legend from scratch. Thanks for any help. Lucy Crooks Theoretical Biology
2008 Feb 14
1
[LLVMdev] Bug Report - Broken versions of FC6-GCC.4.1.1 when complie llvm-2.2 source
2004 Aug 17
3
[probably OT] wireless voip converter
Sory if this is offtopic or rude, but I guess some people here might have the experience... I'm looking for a product to connect my 30-some DECT users to the voip (SIP) network. Some kind of DECT base station that connects to ethernet and supports the sip protocol. And it should have the capacity to support 30 (or maybe even more) users simultaneously. Does anyone know of a product like
2011 Nov 10
4
Maktabah Syamilah on wine
Hi, I'm one of ubuntu indonesian muslim users. The truth is; all of kind software piracy is forbidden in our religion, some people who care this rule get an OS migration. But there are a problem, the best Islamic software "Maktabah Syamilah" doesn't run perfectly, take a look at the screenshots! This is maktabah syamilah on windows: [Image: http://i44.tinypic.com/iqyo48.png ]
2006 Jul 21
1
apache cgi error
Good day. First of all sory for my english, it isnt well. I have my first ruby on rails application. When i use WEBrick my app works fine. But when i tried to run it under apache, i have the following message in browser: __________________ Application error Rails application failed to start properly __________________ The message in apache error log: __________________ malformed header from
2003 Jun 10
2
proc size mismatch
Hello freebsd-stable, hi all i got this error msg on one of my box ns# w 8:12AM up 7 mins, 2 users, load averages: 0.09, 0.08, 0.02 USER TTY FROM LOGIN@ IDLE WHAT w: proc size mismatch (63840 total, 1060 chunks): Unknown error: 0 i got the same error when executing ps aux.. maybe all the gurus can give some enlightened to this newbie PS: sory with my poor
2007 Feb 22
2
postfix vurtual user
Hi, Sory to bother you with my new-user questions. i've got one redhat 9 box, acting as email server using sendmail. it use local /etc/passwd. last week i've just finished setting up a server, centos 4.4 as a replacement mail server for the red hat 9. i mainly refereing the tutorial at http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos. with some
2019 Jun 24
2
LastLogin update
Em 24/06/2019 11:48, @lbutlr via dovecot escreveu: > On 24 Jun 2019, at 08:25, J?lio Covolato via dovecot <dovecot at dovecot.org> wrote: >> #$ cat dovecot-last-login.conf > [ ? ] > >> dovecot.conf: >> >> plugin { >> # Track last login time on imap and pop3 >> last_login_dict = proxy::lastlogin >> last_login_key =