Displaying 20 results from an estimated 1400 matches similar to: "Ruby/rails port of Cocoon/hibernate"
2007 Mar 05
2
SOLVED:Re: How to select postgres for usage instead postgres-pr?
Figured it out chaps..not to worry!!!
--
Regards
Andrew
On 05/03/07, Andrew Madu <andrewmadu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
> further to my additional email the gem build for postgres did not work, so
> I downloaded and copied postgres.so into:
>
> C:\pgRails\lib\ruby\site_ruby\1.8\i386-msvcrt
>
> Again, how do I point rails to using this
2006 Jul 18
3
Newbie validation question
I am having problems with a validation, the full model code is below.
The validate routine is attempting to see if another record with the
same artist_name, title, & catalogue_no exists in the products table. If
so, it should throw an error.
This is the validation code:
def validate
if Product.find(:all, :conditions => ["artist_name = ?, title = ?,
catalogue_no = ?",
2005 Sep 19
4
Rails vs. Cocoon
Hello all,
I''m hoping that someone out there in Rails-land has developed in both Cocoon
and Rails and would like to share their experiences using both application
frameworks.
I''m going to be doing a presentation in the next couple of days on the
advantages that Rails affords. The higher-ups are going to use this info on
deciding whether or not to move away from Cocoon and
2004 Oct 01
5
Song Updates
Run this from command line:
curl --user admin:hackme 'http://192.168.0.1:8000/admin/metadata?mount=/live&mode=updinfo&song=Artist_name+Title'
That should set you all up, just change IP, Port and MountPoint.
-- Cody Tubbs : (Certified Master Linux Administrator)
: (Certified Unix Security Specialist)
-- Broadway Internet
On 1 Oct 2004 at 12:15, Dave St John wrote:
>
2009 Apr 11
6
Inserting data from 1 table to another by using find_by_sql
Hi All,
I am inserting data from one table to another by using following method
@data=RoyaltyReportFiles.find_by_sql("insert into royalty_reports
(artist_name, album_name) select artist_name, album_name from
temp_royalty_reports where id=328417")
it saves the data into royalty_reports table but it gives following
error and application crashes. i am using rails 1.2.5
You have a nil
2006 Jun 17
5
Having trouble listing tiers of categories
I have categories and sub-categories in a table called "categories".
Every row has a "parent" field to note if the entry is the sub-category
of another (never goes deeper than 1 level).
So there might be something like this:
id | name | parent
1 Dog 0
2 Pug 1
3 Siamese 5
4 Shih Tzu 1
5 Cat 0
6 Wiener Dog 1
7 Persian
2005 Dec 16
2
HOW DO I populate options from previous option click
Hi,
I have a form with three drop down option lists. Currently each of these
contain full listings as instantiated in the controller on entering
the edit action. What I would like to do is filter the second list based
on what the user selected on the first and the third filtered to reflect
the second.
For example I have major_role, role and person_in_role = role is a
subset of major_role
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on
site navigation that can deal with any model being in the nav, allow
nesting, and can dynamically update.
So I thought about it for a while, and decided on a MenuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given
2006 May 23
7
has_and_belongs_to_many question
Hello,
I am trying to make the "switchover" to programming my apps in Rails and
have a question about database structure.
In the past i would structure a many to many like this:
categories
----------------------------------------------------
| id | name |
----------------------------------------------------
1 Some Category
2 Another
2005 Oct 11
8
Sortable as a class?
Hi there!
My first post to this list, so first of all many thanks for the amazing
Scriptaculous library. I''m currently using it for some nice Ajax effects
in Apache Cocoon (http://cocoon.apache.org/).
I''m currently struggling with Sortable, which I would like to adapt as
the conventions used in Cocoon are different from those currently used.
Basically, I would like to send
2007 Mar 01
1
PostgreSQL primary (sequence) key issue
Hi,
I have a sequence set up on one of my tables called seq_user_mytable. I
tried the following with no joy:
set_primary_key "user_id", :sequence => "seq_user_mytable" and:
ActiveRecord::Base.seq_user_mytable
again with no joy. How do I implement a sequence in Rails/ActiveRecord?
--
Regards
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this
2006 Mar 23
15
Is Rails Appropriate for our Project?
I realize this subject is redundant for this community, but I''m hoping
the Rails community can provide me with some additional ammunition to
help push a rails project I''m pitching over the proverbial tipping point
at my company.
The Situation:
I''m the lead architect at a large bay area retailer. My team and I are
currently suffering through the process of paying
2006 Mar 02
5
Need to link to something like JasperReports
Hello everyone,
Has anyone linked Rails to a report generator such as Jasper Reports
(http://jasperreports.sourceforge.net/)? At the moment, I think I
need something along these lines for a project I''m working on, so it''d
be nice to know if anyone''s used it before before I bring it up as a
suggestion.
Doesn''t have to be JasperReports, and in fact I''d
2006 Apr 09
1
select helper question
Hi there, I try to develop a medical application using ruby on rails.
There are many categories which can contain subcategories.
I defined the model like this:
class Category < ActiveRecord::Base
has_and_belongs_to_many :notes
belongs_to :parent_category, :class_name=>"Category",
:foreign_key=>"category_id"
has_many :sub_categories,
2010 Jun 04
6
Ajax fails in IE8
hi guys,
I am testing a new optional funtionality in my site with IE 8 after
success with Firefox 3.6.3, chrome and safari.
The new functionality basically sees a "sub category" drop down list
get generated in my form as soon as a "Category" value is selected
from the "Category" drop down list.
I have been using the standard rails api such as observe_field, and
2007 Mar 08
1
RubyRails ActiveRecord base64 encode/decode of binary data
Hi,
I have binary images stored in a table which I wish to encode/decode with
base64 before reading into html object:
<object data="data:image/foo;base64, ..base64 data.." />.
How can I do this in RubyRails?
--
Regards
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2004 Sep 30
2
Song Updates
Hello Everyone,
What is the string to update song titles?
I have seen a few but none seem to work.
Thanks
John
2008 Mar 18
2
Matching multiple nodes with a regular expression
Hello,
I''m setting up puppet on various clusters (tomcat, mysql, tomcat
+cocoon, etc) of computers, each of which has a hostname consisting of
the cluster type and a unique id (e.g. tc-dev-1, mysql-stg-3, etc).
I''ve been merrily adding each node by hand to puppet but being
naturally lazy I wondered if this could be done with a regular
expression instead, something along the
2006 Jan 07
2
Bug#346350: logcheck-database: dhcp3-server ignores need to include (none ) client host name
Package: logcheck-database
Version: 1.2.39
Severity: normal
I use dhcp3-server and a dhcp client which is Sony HDD video recorder
CoCoon. The client not return client host name.
In this case, dhcpd server assumed the client host name is (none).
Therefor dhcpd output log described below.
> Jan 7 10:49:24 on-o dhcpd: DHCPDISCOVER from 08:00:46:33:55:77 ((none)) via eth0
> Jan 7 10:49:25
2006 Mar 23
3
Split to array then save to DB
Basically I want to take a collection of words like "apple orange
banana" textfield in a form and store them into the DB as individual
rows.
1. apple
2. orange
3. banana
I know I need to use the .split method to divide the words into an
array, but i''m not sure how to then save them and where this should
happen (in the controller or the model).
I''m a newb at this,