search for: keynan

Displaying 18 results from an estimated 18 matches for "keynan".

Did you mean: keenan
2008 Dec 16
5
More than one submit_tag in a single form
Hai everyone , I have a list of users(each user in a row)and an Approve button for each user. I wish to change the status of the user to be approved when I click on the Approve button of a user. When I tried getting all the users in the params hash. I want to get the id of the user according to which "Approve" button I clicked. How can I implement this one? Thanks in advance. -- Posted
2006 Nov 14
3
messed-up habtm relationship
Hi, I have a many-to-many relationship between dishes and ingredients class Dish < ActiveRecord::Base has_and_belongs_to_many :ingredients end class Ingredient < ActiveRecord::Base has_and_belongs_to_many :dishes end I have a join table dishes_ingredients now when i access my_dish.ingredients, i get a list of what looks like Ingredient objects, but the but they don''t have
2007 Feb 07
5
Problems Generating Scaffolding
I am having trouble generating some of my scaffolding. I''m trying to use PostgreSQL as my back-end. Some of my scaffolding generates with no problem but for other parts I get this: Before updating scaffolding from new DB schema, try creating a table for your model The tables do exist. At least I can see them from psql. Here is the SQL I''m using to create my tables: CREATE
2008 Jan 18
3
Please help
Hello all, I have developed a RESTFul webservice in RoR. Here under is the controller --------------------------------------------------------------------------------------------------------- class PeopleController < ApplicationController def index list render :action => ''list'' end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
2007 Oct 19
14
Agile Web Development Book, need a bit of help
I''m working my way through the book Agile Web Development with Rails, and I am in the section where the book has me creating a display_cart method and the associated view. When I copied the code from the book into the view, it threw this error. If anyone could give me some hints where I should be looking I''d appreciate it. NoMethodError in Store#display_cart Showing
2008 Jan 21
1
ActionController majic gone bad
Overriding method missing in ActionController destroys magic even when passed back ie. def method_missing(method, *args) if some_condition do_something else #let rails handle it normally super(method,args) end end if I don''t over ride method missing then i can call a view without an action with the override i get a method missing error. MAJIC -- Posted via
2008 Jan 23
2
CSRF / cached authenticity tokens / ajax requests
I''m going to go out on a limb here and say the new CSRF protection in Rails is flawed. Why? Forget about caching if you care to use it. Consider the following: <% cache do %> <%= link_to_remote "Add To Favorites", :url => {:controller => "favorites", :action => "create", "movie_id" => 2} %> <% end %> # Output <a
2006 Nov 16
2
Fwd: building-a-multi-site-supported-application
Was looking for creating subdomains dynamically, and found this one. I dont know how to set this up in my linux PC(The eg. is in mac) http://railstips.org/2006/11/13/building-a-multi-site-supported-application Any help is appreciated -- -- Amala Singh http://www.tamil.net/ தமிழ் இணையம் Telford, UK http://www.mindcolonies.com http://www.ryze.com/go/amalasingh -- -- Nandri, Amala Singh
2007 Jan 26
6
has_many :through query question
I think this is obvious. but for some reason I''m not getting it. Models: Bicycles, Accessories Join Model: Upgrades The idea is that you can upgrade your bike by adding an accessory, and the upgrade price is often less than the accessory price would normally be. So the Upgrades table has id, bicycle_id, accessory_id, and price. class Bicycle has_many :upgrades has_many
2008 Jan 18
16
Need a good RoR developer
Hi, I''m looking for qualified Ruby on Rails developers to work on a client web portal project in Midtown Manhattan for a large financial research company. Requirement Overview: Ruby / Ruby on Rails developer with strong object oriented programming background. Good understanding of model driven architecture, MVC, RDBS and data modeling. Required Skill Set: - BS. in Computer Science (or
2008 Jan 21
2
multiple ids on restful action
Hi, I know this question has come up before, but I couldn''t find a satisfying answer. Maybe I didn''t look well enough, so any pointers to old messages regarding this subject would be welcome too. I need some way to pass multiple ids to a resource. Something like /posts/13,14 If I do this I have to manually split the id on ","s in the action, and use post_path([post1,
2007 Jun 03
3
remote_form_for issue
Hi everybody, I''m trying to change my current forms in my app to remote_forms. It was my understanding that remote_form_for and form_for work in the same way, so I just wanted to change the methods. My code looks like: <% form_remote_for :post, :url => posts_url do |f| %> <%= render :partial => ''form_posts'', :locals => {:f => f} %> <%=
2007 Jun 04
3
Expected ... to define (rails version 1.2.2)
Hi, I''m having a mysterious problem that occurs when I''m using Rails 1.2.2. My app works fine when the environment.rb file reads: RAILS_GEM_VERSION = ''1.1.6'' When I change this to: RAILS_GEM_VERSION = ''1.2.2'' and try to load http://<mydevhost>:3000/srs/, I get the following traceback in the developer log: Expected
2007 Feb 16
13
negate the regexp in validates_format_of
Railsters: ActiveRecord''s validation system puts other database systems to shame. However, the newbies might not know how to write a regexp that excludes a match, instead of tests for it. Understand - I''m just asking this question to help them. I have been using Regexps since ''grep'' on Xenix! But the newbies here might not know how to do this:
2007 Mar 26
5
Session trouble
I am having a problem with an assignment to an object stored in session. for example when I am in console o = NewOrder.new # dl = DeliveryLocation.new # o.delivery_location = dl #=> returns a delivery location object # o.delivery_loaction.save #=> returns true when I am using the controller delivery_location = DeliveryLocation.new(params[:delivery_location])
2007 Oct 18
0
cruise control rb mailer / Action Mailer
I am getting this error message when the mailer tries to execute TLS not available after start at /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' any one have any idea whats going on here -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Nov 08
0
Dynamic relation with eager loading
A model has 2 columns in its table asset_type_id asset_id the asset_type_id links directly to the table asset_types via a belongs_to asset_types contains a single column ''name'' method_missing in the model says when you call a method matching /^asset.*/ call the corresponding method substituting ''asset'' for the contents of asset_type.name (ie. the name in
2008 Jan 18
1
ATTN: Acts as tree users
Acts as tree users: please review ticket http://dev.rubyonrails.org/ticket/10843 and add comment with +1 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to