search for: ganser

Displaying 5 results from an estimated 5 matches for "ganser".

Did you mean: gander
2009 Jul 14
4
[ActiveRecord::Base].collect {|a,b| ...} weirdness
Hey everyone. My mind has been boggled by an issue I ran into a few hours ago. I am completely lost as to why the following code behaves the way it does and would appreciate any hints from you guys. It would already be super-helpful if others could post their output for the following so that I can figure out whether this is weirdness specific to my setup or a global phenomenon. So far,
2005 Dec 14
1
[scriptaculous] scroll down to show full auto completion list (w/ possible patch)
Hi everyone, lately I''ve implemented an auto completion textfield at the bottom of a form. I was a bit bothered by the fact that the user would potentially need to scroll down in order to see all the options offered by the auto completion. I couldn''t find any information on how to auto scroll to the auto completion list with bulit-in functionality so I modified controls.js
2008 Mar 21
5
foreign key question
Hi- Say I have a db with following schema: MyTable: Id, name, user_id, date User: id, name, description I know that I want to add "belongs_to" in my "user" model but how can I enforce a proper constraint on the user_id in "MyTable"? Is this done using a has_one in the "MyTable" model? Thanks! --~--~---------~--~----~------------~-------~--~----~ You
2005 Dec 01
0
[MySQL] extended count function for use with queries containing a GROUP BY clause
Hi everybody. While playing around with pagination I noticed that when using certain GROUP BY clauses Rails would think that your result contains less lines than it actually does. This is related to the use of a plain "SELECT COUNT(*)" for getting the number of total rows which the following query will return. In order to bypass this problem, I created the following replacement for
2005 Dec 03
1
shared methods for controllers belonging to a specific module
Hi everyone. I was just wondering what the best way ™ might be to let all controllers of a module share methods and variables. Is there some "magic" file rails will automatically load when a module is requested or do I have to manually (doesn''t sound like the rails way..) create a class with the desired methods/variables and let my controllers inherit from it? If so, where