Displaying 20 results from an estimated 200 matches similar to: "set_table_name and self.table_name"
2008 Jun 11
2
starting record id is 10000 in oracle 10g ,why ?
i create a new model(User) and create a new record
(User.create(attributes)) in oracle
when i check User.find 1  in console
it gives record not found error
when i try
User.find(:first).id --> 10000
how to change this starting id into 1 ....
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2006 Mar 03
13
Listing help
Hi,
I''ve created a Rails application and am having a problem listing by a 
particular category in an associated table.  I followed the instructions 
found at the O''Reilly tutorial 
(http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html?page=3) but have 
not had success.  Can anyone please outline a better set of instructions 
than in the "Showing Recipes in a
2006 Mar 16
4
calling an actionview method from inside a model
Hi,
I would like my model instance to produce it''s own list of options for
a form select. This is from a product model that has_many variations
def  alts_for_select(current_id)
  the_map = variations.map{|v| [v.name, v.id]}
  options_for_select(the_map, current_id)
end
the model cannot see the options_for_select method
I tried to use
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
Manuel:
I changed your variable names from x to 'long' and y to 'lat' on the 
riqueza_out.csv file.
The code below should do what you want. Also, since the legend title is kind of 
long, I broke it
down into three lines so you can see more plot area. I am cc'ing the other 
groups so more people
use it if needed.
library(rgdal)
library(ggplot2)
library(sp)
library(maptools)
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just
straight HTML, I only used the form helpers for the form tag as so:
--
<%= form_tag({:action => :send_request}, {:method=>:post,
:name=>''childsplay''})%>
--
In my page controller I have this:
--
def send_request
    email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I
2006 Oct 22
3
Keeping DRY - I like a simple life!
Hi,
I''m new to Ruby and Rails and I would be very grateful for some advice.
I''ve got the following code.
class Foo < ActiveRecord::Base
include Versionable # Some methods to handle my versioned objects
has_many   :versions,   :class_name => "FooVersion", :foreign_key =>
"parent_id"
belongs_to :curr,       :class_name => "FooVersion",
2004 Apr 14
2
Problem creating new domain in unstable
Hi,
    I just had a try using the xeno-unstable. When I used the xc_dom_create.py to create a new domain I got the followings:
==============================================
Traceback (most recent call last):
  File "/usr/bin/xc_dom_create.py", line 332, in ?
    (current_id, current_port) = make_domain()
  File "/usr/bin/xc_dom_create.py", line 238, in make_domain
   
2007 Oct 28
2
failing test with nested controller routes
I have googled and browsed through spec-users archives, but didn''t
find anything different.
I used rspec scaffold command to generate a mvc for groups, I used
nested controller so I could have a separate interface for admin.
the specs are the same as generated, so I won''t post the whole thing.
I did put the  nested routes names on the calls to the name routes:
  it
2006 Nov 21
1
Unable to connect to a mirror and install packages
Hi list,
 
I am having problems installing packages in R 2.4.0 for Windows.
When I tried to connect to a mirror I got the message:
 
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
Erro en open.connection(file, "r") : no fue posible abrir la conexión
Además: Warning message:
no fue posible conectarse a 'cran.r-project.org' en el
2007 Nov 02
5
RSpec, RESTful nested routes and :path_prefix
Dear list,
In the app we are making we have a rout something like this:
map.resources :projects do |projects|
   projects.resources :pages, :controller  
=>"Wiki::Pages", :path_prefix => "/projects/:project_id/ 
wiki", :name_prefix => "project_wiki_"
end
But I can''t get RSpec(I''m very new to it) to accept this. It keeps
throwing errors:
2006 Feb 25
1
checkbox helper question
I used scaffolding, then modified. As an after thought I added a
"boolean" checkbox to my database, form with this tag
<p>
<%= check_box ''is_hot_item'', @photo.is_hot_item %>
<label for="is_hot_item">hot item?</label><br>
</p>
I check it and save. But I don''t get 1 saved in my database field.
:(
I have just the
2012 Dec 18
1
Problem with srptools
Hello,
I have a problem with the srptools to connect my Dom0 to the scst over 
IB ressources.
*When i''m on the Debian kernel (without Dom0) *
root@blade1:/# ibsrpdm -c
id_ext=003048ffff9dd3b4,ioc_guid=003048ffff9dd3b4,dgid=fe80000000000000003048ffff9dd3b5,pkey=ffff,service_id=003048ffff9dd3b4
2004 May 20
1
xc_dom_create.py cpu flag
I pulled unstable yesterday and noticed xc_dom_create.py does not have
a default value for cpu, so python complains 
 Traceback (most recent call last):
   File "/usr/bin/xc_dom_create.py", line 408, in ?
     (current_id, current_port) = make_domain()
   File "/usr/bin/xc_dom_create.py", line 234, in make_domain
     id = xc.domain_create( mem_kb=mem_size*1024,
2025 Jan 21
1
Development version of R fails a regression test
G'day all,
I have daily scripts running to install the patched version of the
current R version and the development version of R on my linux box
(Ubuntu 24.04.1 LTS).
The last development version that was successfully compiled and
installed on my machine is "R Under development (unstable) (2024-12-31
r87500)". Since then the script always fails on one of the regression
tests;
2006 Feb 16
21
RoR VS Rails ???
I didn''t get a chance to go to this meeting debating WebObjects Vs 
Rails, but here''s a report about it:
http://desperatepundit.com/blog/cremes/technology/2006/02/15/WebObjects-versus-Ruby-On-Rails.html
I don''t get what he''s saying, hand coding the model? yeah, you COULD ... 
but what about script/generate  ???
And is that so what he said about security?
-- 
1999 Mar 29
1
Password Problems on AIX 3.2.5
I'm trying to setup samba 2.0.3 server on AIX 3.2.5 box
using DIAGNOSIS.txt and on test 3 i'm having problems.
This is what i have on command line:
smbclient -d 4 -L alenianola
Added interface ip=190.20.200.200 bcast=190.20.255.255 nmask=255.255.0.0
Client started (version 2.0.3).
resolve_name: Attempting lmhosts lookup for name alenianola<0x20>
startlmhosts: Can't open lmhosts
2007 Jun 28
5
Droppable onHover fires on page load, not on hover
Hi all, first post.  I have a simple set of drag/drops that I''m trying
to use in FF.  Unfortunately on page load all of the droppables on the
page fire simultaneously and then won''t respond to any futher attempts
to drop anything on them.  Firebug isn''t showing any errors and I''m
completely stumped...  Any ideas of where to look?
using:
2011 May 11
2
Issue with Arel::SelectManager and insert Method
Hello,
Arel::SelectManager (arel 2.0.9) uses following statement to insert a
new record:
@engine.connection.insert im.to_sql, ''AREL'', primary_key_name,
primary_key_value
But in DatabaseStatements insert ist defined as:
insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
Actually, Arel::SelectManager does not use the sequence name. This
leads to issues
2019 Feb 16
4
Duda error sintaxis
Buenas tardes chicos, estoy intentando hacer un gráfico que resuma para
cada dia de la semana la información de algunos distritos específicos de
los que contiene mi variable, ejecuto esta sintaxis pero me da un error
Error: Mapping should be created with `aes() or `aes_()`.
Alguien me puede orientar sobre que estoy haciendo mal, llevo mucho rato
atascada.
 Muchas gracias
df_nuevofinal %>%
2006 Mar 02
7
The no-framework PHP MVC framework
"The no-framework PHP MVC framework"
http://toys.lerdorf.com/index.php?url=archives/38-The-no-framework-PHP-MVC-framework.html
Yuck! What spaghetti code. I can''t ever imagine preferring that to 
Rails.
Joe
-- 
Posted via http://www.ruby-forum.com/.