search for: saltysiak

Displaying 11 results from an estimated 11 matches for "saltysiak".

2006 Feb 13
4
Calling find()
Hello, sorry for the bulk question, but I cannot find answer anywhere, I have model like Phonebook::Category, and i`m stuck on calling find() method on this model ?
2006 Feb 14
2
AJAX on page load
...no user action necessary. I don''t really want to hack in a hidden remote form or link that is submitted or clicked on page load. Also: I like the thought of using AJAX vs partials or something since then I can cache this widget separately and use on multiple pages. -- Byron http://byron.saltysiak.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/a8080063/attachment.html
2006 Feb 06
9
tests fine, but fail under rake
Hi there, So I have an odd error at the moment that only occurs when I run tests via rake. It''s happening with two tests now. Under a simple ruby run, the tests are fine, e.g.: D:\User\Code\ruby\prometheus>ruby test\functional\story_comments_controller_test .rb Loaded suite test/functional/story_comments_controller_test Started ......... Finished in 2.37 seconds. 9 tests, 65
2006 Feb 14
8
routing failures
probably something really simple but I don''t understand. Shifting to Apache to w/ fastcgi (definitely feels faster than webrick) Anyway, I set the default route in routes.rb to be map.connect '''', :controller => "placements", :action => ''list'' which worked once I figured out apache... Anyway, now that I have done that, all attempts
2006 Feb 07
4
Ruby, Rails & Inheritance
Hi! I am looking for a solution for the following problem: Some of my models share some attributes and also was in need for some extra features, so I created a class "RecordWithFeatures": ----------------------------------------------------------------- class RecordWithFeatures < ActiveRecord::Base # @Override def self.descends_from_active_record? superclass ==
2006 Feb 14
4
Newbie stumped by "NameError in "
Help. I cannot find any help by searching... I''m slowly creating an application using tutorial examples, etc, but I think I''m missing something real basic: Here''s the error message: NameError in Mindreadr#display_images_from_mindreadr undefined local variable or method `mindreadr_open_socket'' for #<#<Class:0x37c3b08>:0x37c3a30> Here are
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book. The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application. For instance, it will be great to see how one can implement the typo blog
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action? Thanks Frank --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 14
1
Another HABTM Question
Hi there, I have a question on what would be the best way to save a HABTM model. A posting habtm categories, and a category habtm postings. class Category < ActiveRecord::Base has_and_belongs_to_many :postings end class Posting < ActiveRecord::Base has_and_belongs_to_many :categories end In my blog_controller, where the actual posting is saved, is where I think I''m
2006 Feb 06
4
Basic MVC in RoR question
Ok, Here''s my controller: def create trainingplan = Trainingplan.createplan(@params[:startdate], @params[:enddate], @params[:hoursperweek], @params[:programtype]) end My model is: class Trainingplan <ActiveRecord::Base def self.createplan(stardate, enddate, hoursperweek, programtype) stardate = startdate enddate = enddate hoursperweek = hoursperweek programtype
2006 Feb 14
8
Assigning has_many child in parent creation question
If I have... class Parent has_many :children end class Child belongs_to :parent end ...then... * Assigning a _new_ child during parent''s creation saves the child record with the parent''s id. child = Child.new Parent.create(:children => [child]) # Results in child being associated with parent * Assigning an existing child after a parent''s creation