similar to: somewhat advanced question about mysql

Displaying 20 results from an estimated 600 matches similar to: "somewhat advanced question about mysql"

2012 Aug 08
1
Creating ToDo List App
Hi, New Rails user here trying to create a basic todolist app in rails 3.2.6 and running into some foreign key issues. Here''s what I did... I generated scaffolds list title:string & task description:text listname:string Next, in order to link the listname for Tasks and the list titles in the Lists I generated a migration file which looks like this class AddListIdToTasks <
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial =>
2007 Jan 05
2
Using RESTful routes in controller tests
Why can''t I use the RESTful route helpers in my specs? In my controller I''m doing a redirect: redirect_to list_path(:id => @item.list_id) Now when I write: controller.should_redirect_to list_path(:id => 2) I''m getting the following error: NoMethodError in ''POST on /lists/2/items should redirect to index on succesful POST'' You have a nil object
2006 Sep 10
5
why isn't :order working in acts_as_list
Ok, I''m sure this has to be something stupid that I''m doing (or not doing), but I can''t seem to get things to order by the specified column. class List < ActiveRecord::Base has_many :list_items, :order => "orderby" The error I get back when trying to save the link is: Unknown column ''position'' in ''order clause'':
2006 Sep 28
15
Inserting rows into linking table
Hi, I have two objects: Contacts Lists I want to be able to add multiple contacts to multiple lists. I''ve created a linking table and a form that allows me to select the contacts using checkboxes, but I''m having some problems with the controller and model. I receive the following error message when I submit the form: Mysql::Error: Cannot add or update a child row: a
2006 Nov 07
1
reading VERY large binary files
Hello, I am trying to read in elements out of a very large binary file ... the total file is 4 gigs. I want to select rows out of the file, and the current procedure I run works but is prohibitively slow (takes more than a day to run and still won't complete). Is there any faster way to accomplish this? My current procedure looks like this: readHH <- function(file_name,
2007 Mar 23
2
has many ( THROUGH ) confusion
Maybe this is normal operation, but this doesn''t seem right to me. I have models: - account -- has many listshares -- has many lists ( through listshares ) - list -- has many listshares -- has many accounts ( through listshares ) - listshare --belongs to account --belongs to list I would have expected that if I perform the action list.destroy, then any records in listshares with the
2017 Jan 16
3
[cfe-dev] Your help needed: List of LLVM Open Projects 2017
The list can't ommit clang-tidy. There are many ideas about new checks on llvm bugzilla. https://llvm.org/bugs/buglist.cgi?product=clang-tools-extra&component=clang-tidy&resolution=---&list_id=110936 Everything matching ".*Feature Request.*" Piotr 2017-01-16 21:31 GMT+01:00 Sean Silva via cfe-dev <cfe-dev at lists.llvm.org>: > Do we have any open projects on
2006 Jan 21
5
Help...why ''rake migrate'' can''t be executed on RadRails
''rake migrate'' command can''t be executed on RadRails? I found Terminal Window at RadRails and executed ''rake migrate'' on that terminal many times.but nothing happend,even error messages. I made InitialSchema file like these and configured database.yml. of course I made database before executing ''rake migrate'' anyone,get me
2006 Jul 08
9
How to handle dynamically columned tables in rails
I want to build an application that lets me (the end user accessing a web page) design a simple list with columns and add records. E.g., if the end user says I want a table that has a list of songs, he can create a list (title, date, artist, label) and then make another list of, e.g., books on his bookshelf with the necessary columns (title, author, pub_date, shelf). The end user
2006 Jan 29
16
counting rows via associations
Hi: I have a table called clients and each client has many lists (a has_many and belongs_to has been created in the class. What I need to do is get a count of the rows in each list for each client. I was hoping I could do something like client.lists.count but it does not seem to work. Any suggestions? bruce
2006 Jul 02
10
Use Rails or PHP?
I''m new to RoR and have used PHP. I want to develop a personal organizer that allows me to add lists (tables) and search them. The ActiveRecord concept seems to allow me to set up something that works with an existing table, but I want the ability to add tables without programming. I know how to do this in PHP and I can put the SQL into queries in RoR, but does ActiveRecord let
2006 Apr 05
23
how to create RJS visual effects callbacks
I''m trying desperately to get visuall effects callbacks working in rjs templates to no avail What I''m trying to do is fade an image, change the div with the image to a new image, and then fade the new image back in. How would I go about this in RJS Here''s a simple line from my rjs that I can''t get to work. It is not using callbacks so the
2008 Jan 30
0
Besoin d'un Financement rapide ?
[1]Si vous n'arrivez pas ? lire correctement ce message cliquez ici [2]Disponis le crdit selon vous [3][email-noel_02.gif] [4][email-noel_03.gif] [5][email-noel_04.gif] [6][email-noel_05.gif] [7][email-noel_06.gif]
2006 May 29
6
override automatic update of updated_on column
i know that title sounds confusing, but here is the deal: the two columns that we are concerned with for this question are the "updated_on" column and the "views" column. the views column increases everytime a user visits a certain page. like this: @object.update_attributes(:views => @object.views + 1) the problem is that when a user visits the page, it AUTOMATICALLY
2007 Jan 27
0
Problems with implementation of dynamically updating scores
Hi, I''m implementing a "digg-like" page, that once you digg. The score for each item will dynamically reflect your current action +1 . I am not sure what''s In the controller I have an action responsible for increase of the score.It has a corresponding rjs in view. -------------------------------------------------------------------------------- def arouse
2005 Oct 27
0
has_one with Single Table Inheritance - NameError : uninitialized constant
I am having a problem with using SIngle Table Inheritance with a has_one relationship, and I am at a loss of what could be causing it. Below is the related code and the error message. class User < ActiveRecord::Base has_one :wishlist end class List < ActiveRecord::Base belongs_to :user end class Wishlist < List has_and_belongs_to_many :items, :class_name =>
2016 Aug 30
2
Remaining spam in Bugzilla
Hi! There were several new spam entries in Bugizlla, created from previously created accounts. I think will be good idea to delete them as well as block spammers accounts : Report IDs: 30192, 30191, 30187, 30186, 30185, 30182, 28766, 28717, 28715, 28714. Eugene.
2010 May 29
0
User Error during memcached integration
Hello, I hope all is well. I am hoping someone can help me with a problem that I am certain is user error? The configuration details below work in all my other environments including integration, development and qa. However, the production servers give the following error: unable to find server during initialization. When I telnet to the memcached box from the server having the problem and run
2010 Sep 29
2
Railroad problem with :through?
I have the following model layout: class List < ActiveRecord::Base has_many :subscribers, :through => :list_subscribers has_many :list_subscribers end class Subscriber < ActiveRecord::Base has_many :lists has_many :lists, :through => :list_subscribers end class ListSubscriber< ActiveRecord::Base belongs_to :list belongs_to :subscriber validates_uniqueness_of :subscriber_id,