Displaying 20 results from an estimated 100 matches similar to: "remote form w/ evalScripts:true"
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 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 May 13
4
somewhat advanced question about mysql
so here is the deal. i''ve got three tables: lists, items, comments, and this is how they are laid out:
lists table
id
title
items table
id
list_id
item
comments table
id
list_id
comment
to give you some background. in order to get a list of all the lists i am making this call:
SELECT lists.id, title, count(items.list_id) AS total_list_items
FROM lists
INNER JOIN
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person
who complained of problems specific to IE, but that''s what I''ve got.
My environment is:
Rails 1.0 + RJS Plugin
Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support)
Monkeypatched in_place_editor to support evalScripts
I have just started using RJS, and I have two .rjs templates.
2006 Jul 17
2
error_messages_for ?
Hi,
I can''t list error_messages in my Form ??, and all the formfields are
reset ...(I think my redirect :back clean everything, formfield and
error_messages ...), only my flash[:notice] is ok....
I would like to use the "error_messages_for" tag to add a simple red *
on my textfiled if a problem occurs ...
thanks for help
arnaud
here are the basics steps to check that
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 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
2007 Dec 15
3
check_box not being checked
I''m new to RoR and I''m having a little problem that I can''t solve.
My model is simple. I have Lists and ListItems.
I have a view that loops through all the list items, and I put the
HTML for the each list item row in a partial called _list_item.rhtml.
This is the view, called show.rhtml
<ul>
<%= render(:partial => "list_item", :collection =>
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 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 Feb 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the
mouse horizontally when you drag it.
Is there a solution/workaround?
TIA
Alain
2006 Jun 21
2
Validation on update
Searched for it, but found nothing, so i open a new topic :/
I think it is very basic stuff...
My model has a validation rule like this:
validates_presence_of :title
If i try to save the model (@mymodel.save) with an empty title-formfield
i get an error. hooray! that''s what i want!
okay i insert a valid title and everything is fine.
now i want to update the model (@mymodel.update) and
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
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.
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
2014 Jun 09
2
Subject tag is gone
I've actually been thinking about it almost since the beginning. It's just been annoying waste of space on my screen. And more importantly nowadays it's also breaking DKIM/DMARC signatures. So if somebody still uses Subject-based filtering it's about time to switch to List-ID header based filtering now.
Another thing I'm wondering about is if I should allow text/html parts,
2017 Jun 24
9
IMPORTANT: LLVM.org server move complete (SVN impact please read)
LLVMers,
We have completed the move to the new server for LLVM.org. One casualty of this move was that svn.llvm.org was NOT enabled at this time.
There is a new certificate for LLVM.org and HTTPS is enabled for the website. We know of a few issues with some of the webpages but will be working them out over the next few days.
Please do not hesitate to contact llvm-admin at lists.llvm.org with
2006 Apr 09
12
Help With Dependent Drop-Down and @Params
Hello All:
I am trying to create a select box that is filled with options based on
the user''s selection in a related drop-down. I have had success with
this before using the examples provided by the following two sources:
One posted by Rory at Rory on Rails - http://www.roryhansen.ca/?p=9
the other posted by Adam at