Displaying 16 results from an estimated 16 matches for "outertrack".
2006 May 16
25
Ruby on Rails Searchable and Annotatable Docs
I recently updated my Rannotate application. The interface has been
completely redone and there are lots of new features. The basic idea is
to create searchable and user annotatable documentation for the Ruby on
Rails API (think php.net).
Check it out at - http://rails.outertrack.com
* What is Rannotate?
Rannotate is a Rails application and RDoc YAML generator that work
together to provide user submitted notes for rdoc generated
documentation. It is modeled after the successful online PHP
documentation at www.php.net.
This is not just for the Ruby on Rails API, it can...
2006 Jun 05
5
adding habtm through migrations
Hello,
I''m stuck, I''ve got a model Product and would like to add a new model
called Category. Furthermore, I want to set up a many2many
relationship between the mentioned models. the problem is that I do
not know how to set the primary key in the categories_products table.
this is what I''ve got in my migration file:
create_table :categories do |t|
t.column :name,
2006 May 28
9
Railsmanual.org
Did anyone else catch the redesign? I don''t know who''s responsible, but it''s
lookin better!
Good job...
--
seth at subimage interactive
http://www.subimage.com/sublog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/f9f92618/attachment.html
2006 May 23
8
ad-hoc query
How do you run an ad-hoc query that does not belong in any model? I
thought it was something like ActiveRecord::connection.find("my
query..."), but I can''t seem to find the documentation on it. I know
I''ve seen it somewhere before, though.
thanks,
Jeff
--
Posted via http://www.ruby-forum.com/.
2006 Jun 16
4
Unit test and get request with a URL
I''m tyring to write a unit test that uses a get() method to simulate a
get request in my functional test. However, get wants an action, and I
have a URL. I''m trying to redirect to a URL the user tried to hit
before logging in. After they login I want to go back to the URL they
originally tried.
I can''t find the get() method code in the help or otherwise. I
2006 May 22
3
Best Rails API source
Folks,
Is api.rubyonrails.com the best source for RoR API info? Do any other formats exist, that are easier to navigate/search?
Thanks,
Marcus
Marcus Blankenship
Technology Services - Software Group
JELD-WEN, inc.
Information Systems
541-882-3451 x 2558
marcusb@jeld-wen.com
RELIABILITY for real life*
This correspondence is for the named person''s use only. It may contain
2006 Jul 27
5
Calculate methods on attr_accessor objects
Is it possible to use the calculate methods (sum, etc.) on attr_accessor
attributes?
Ie:
Class Item < ActiveRecord::Base
attr_accessor :total_cost
def total_cost
@total_cost = self.cost_unit * self.amount
end
calling Item.sum(:total_cost) or Item.sum(''total_cost'') both return a
unknown column ''total_cost'' mysql error.
I thought that active
2006 Jun 12
1
Restart Rails by plugin development
I write a plugin.
After any changes maked to it I have to :
1) restart WebRick, to load new changes. It is not comfortable
or
2) if I use Apache with CGI. It takes too much time for each request
(about 4-5 sec).
some Ideas?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 23
2
Storing Array in Database
Hey all,
I''m storing an array of timestamps in a field in my database as an
array. When the items get saved, however, some minus signs are appended
to the text:
sample output:
---
- 1151971200
- 1152576000
- 1153180800
- 1153785600
- 1154390400
Is this normal behavior? When I retrive the value out of the database
and .to_a, the three minus signs (---) are counted as the first
2006 Feb 22
3
ri docs for Rails?
I cant find ri docs for any of the Rails classes. Do I have to generate them?
I do see RDoc files.
john
2006 Jun 14
13
A good tutorial
Are there any other tutorial than "Agile Web Development with Rails"
that you can suggest? So far I can''t say that RoR has been easy to
learn. :-)
--
Posted via http://www.ruby-forum.com/.
2006 Jun 19
5
Global Count Variable
I would like to set up a global variable to count how many times a
specific method is executed, but I would like the variable to keep
counting regardless of sessions, restarting the app, etc. Is this
possible?
Or... I could just do a simple read/write to a text file on the server,
but I''m not finding any good tutorials or examples about simple text
i/o... any suggestions?
Thanks!
2006 Jun 01
3
more questions: human_name
One more question:
Is there some way to set the human_name of a column? e.g.: human_name
for column address1 shouldn''t be Address1 but "Address, line 1".
If not, should I make a hash with my custom names?
Best regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
2006 Feb 09
6
Can I protect access to a relationship?
Hi,
I have a class Match that looks like this (simplified)
class Match < ActiveRecord::Base
belongs_to :opp1, :class_name => "Player", :foreign_key => "opp1_id"
belongs_to :opp2, :class_name => "Player", :foreign_key => "opp2_id"
belongs_to :winner, :class_name => "Player", :foreign_key => "winner_id"
end
Can I
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this :
<input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : ''''
unless @var == nil %> />
but i am sure there is something better than this in rails like
<%= checkbox_tag ''var'', ''car'', :checked => true %>
but this is not
2006 Jun 08
8
another routes question
i need help setting up the routes for my app.
I have created about 10 controllers in the app/controllers/pro
directory:
app/controllers/pro/address_controller.rb
app/controllers/pro/certification_controller.rb
app/controllers/pro/program_controller.rb
app/controllers/pro/program_controller.rb
and so on...
The problem is that I would like to also use app/controllers/pro as a
controller; so