similar to: RoR: Torrent Tracker

Displaying 20 results from an estimated 4000 matches similar to: "RoR: Torrent Tracker"

2007 Nov 25
4
is notify resevered word?
Hi, When I added this association... class User < ActiveRecord::Base has_one :notify end ...and tried then to update column in User table it will call queries for notify table automatic? Output --------------------------------------------------------------- User Columns (0.041488) SHOW FIELDS FROM `users` User Load (0.001544) SELECT * FROM `users` WHERE (`users`.`nickname` =
2007 May 06
2
render :action "call method first?"
Hi, I know when I call: render :controller => ''some'', :action => ''thing'' It doesn''t call the method ''thing'' before render the template ''thing.rhtml'', but I need some instance variable which are in the ''thing'' method, how can I let it call the method ''thing'' and then render
2007 Mar 27
6
how does rails do this "find_by_?"
Hello there, I''m wondering how do they create functions on the fly? find_by_any_column_name ?? I want to do something similar with my models, but I don''t really know how to do it? user_current_nickname user_current_id user_current_role etc.? Regards, Jamal -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this
2007 Nov 01
3
autotest debugger?
Hi, I keep facing problems with autotest, and I don''t know what''s happening in the background, is there anyway to know what''s happening while testing? Example: @user = User.new @user.email = "testcom" @user.errors.on(:email).should_not be_empty ...throws error failure - You have a nil object when you didn''t expect it! - You might have expected an
2010 Sep 09
17
formtastic issue
Hello, I will try to explain it step by step :-) I just created a new rails 3 app, then I created a new controller... rails generate controller admin::users I didn''t forget to add the resources in the routes.rb file like this. namespace :admin do resources :users end Now I try to use formtastic to create the form but I get erorr that my users_path doesn''t exist?
2007 Oct 29
2
rspec throws exception (nameError)
Hi, I''m running Rails 1.2.5 with rspec 1.0.8. When i runned autotest first time, it complained about this line. #include ActionView::Helpers::JavaScriptMacrosHelper in vendor/plugins/rspec_on_rails/lib/spec/rails/dls/behaviour/helper.rb ...I commented it out, then I got another error about this line, so I also commented this out. #Test::Unit.run = true in
2007 Oct 02
3
Note on Rails 2.0 Preview
Make sure you get a relatively current version of rspec or you will get: /Users/me/rails/ubb/vendor/rails/activerecord/lib/../../activesupport/ lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper (NameError) Hope this helps someone.
2007 Sep 07
5
enforce mutual exclusivity
Hi, First post, please be gentle! I couldn''t find any mention of this already I''m using ActiveRecord and I want to enforce mutual exclusivity on a has_and_belongs_to_many. A concrete example: I have a User which can have one or more Roles (student, tutor, headmaster, administrator etc). However if a user is a student they cannot hold any other role. I was hoping to find
2007 Apr 12
4
Installing rspec in Windows
Hi all, I''m trying to install rspec and I''m having a problem. C:\Users\Nathan\Documents\rails\myproject> gem install rspec Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rspec-0.8.2 Installing ri documentation for rspec-0.8.2... Installing RDoc documentation for rspec-0.8.2... C:\Users\Nathan\Documents\rails\myproject> ruby
2007 Mar 29
4
validates_length_of not working with :if ?
Hello, I''m trying to cut down the errors if the guy already getting the empty nickname, so he doesn''t get anything about the nickname is short. validates_presence_of :nickname This below is not working ? validates_length_of :nickname, :within => 4..40, :if => Proc.new { |user| user.nickname.length > 1 } nor this one below? validates_length_of :nickname, :within
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad, I installed and tried out rubygems for one of the win32-utils projects named win32-mmap. This is on Win XP (Home). Here is how I did it but got some errors (see at the end). I must be doing something wrong. Please help ... -- Shashank #------------------------------------------------------------ require ''rubygems'' spec = Gem::Specification.new do |s|
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi, I was able to successfully Install InstantRails-1.3a and run cookbook throgh Apache and WEBrick , however when I try to create my own app. cookbook2 following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html) , it gives me below error whle creating MyTest controller Cannot find gem for Rails =1.1.2: Install the missing gem with ''gem install -v=1.1.2
2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION: Ruby 1.8.2 Rails 1.0.0 rubyful_soup 1.0.4 (GEM) FACTS: 0) I have successfully installed the rubyful_soup GEM using (I had previously installed it, which is why the output may look sparse): C:\ruby>gem install -r rubyful_soup Attempting remote installation of ''rubyful_soup'' Successfully installed rubyful_soup-1.0.4 Installing RDoc documentation for
2006 Jun 20
3
Running Mongrel Cluster on boot
I''ve installed pen and mongrel with mongrel_cluster (as gems) on Debian sarge. I can run everything from the command line fine including starting from the /etc/init.d/mongrel_cluster script On boot though mongrel_cluster fails with this msg: /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) (Gem::LoadError)
2009 Apr 01
1
Torrent tracker for CentOS v5.3 working properly?
Hi, Is the tracker for the 5.3-release working properly? The only torrent I see actually downloading is CentOS-5.3-i386-bin-1to6. The other three for the i386 DVD and ditto for x86_64 (cd+dvd) are just sitting there. The availability and the number of connected peers in the swarm for each torrent is rather high though. Do torrent downloads work from a single tracker at centos.org, or are those
2009 Nov 26
2
how can i use windows xp style in wxruby
sorry, i can''t open the page: http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html so, can anyone send the content to me? thinks very much can put here or send me email: bencode@163.com -- Posted via http://www.ruby-forum.com/.
2007 Dec 18
1
Can't connect to torrent tracker
Well, yesterday my 5.1 and 4.6 systems could connect to torrent.centos.org OK. Today neither system can connect. I can ping, but that's all. No changes were made to the firewall during this time. Any tips on debugging this? I successfully http downloaded all the ISO images from various mirrors this morning, so I think my net and firewall are OK. TIA -- Bill
2006 Sep 18
1
(no subject)
Hi there, I was updating the R-cmdr add-on (v.1.1-6 to the latest v.1.2) for R (v.2.2.0) in a SunOS9 environment and came across some warnings during my installation - it seems to download the dependencies but runs into the following during install: * Installing *source* package 'acepack' ... ** libs /opt/sfw/R/R-2.2.0/bin/SHLIB: make: not found ERROR: compilation failed for package
2005 Dec 28
2
Rails didn''t install correctly
Hi all, Apparently rails didn''t install correctly on my Mandrake 10.0 system. ================================= [slitt@mydesk work]$ rails demo /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem rails (> 0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate'' from
2008 Nov 11
1
Admin controller
This is very weird behavior for rails. 1. When I visit my app http://localhost:3000/admin/base/login class Admin::BaseController < ApplicationController def login render :text => "running" end end 2. but when I go here http://localhost:3000/ I get error because login.html.erb not found 3. even though my route looks like this. map.root :controller =>