Displaying 20 results from an estimated 200 matches similar to: "Help please"
2006 Jun 13
11
Question: Migration - multiple creates
I want to create a migration file that creates multiple tables, so i''m
guessing the correct format would be:
Can anyone confirm ? I''m guessing that each new create script requires a
seperate class so formatted this way. Perhaps I''m wrong.
TIA
Stuart
class CreateTable1 < ActiveRecord::Migration
def self.up
create_table :table1s do |t|
t.column :length,
2006 Aug 03
1
OT: Tables and Rails code
This might be off topic, not entirely sure. Basically I''ve created a
table to return data and it seems that the column headings repeat
along with the entries. So perhaps it''s where I''m placing the code and
not so much my HTML.
Ideas, solutions appreciated:
<h1> Current job openings</h1>
<% for position in @positions -%>
<div
2007 Jan 29
6
RJS problem
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
2006 Jan 10
13
InstantRails 1.0 problems...
Hi,
I have installed InstantRails 1.0 Final on Win XP (Home SP2) and Win 2K 2000.
I was able to get the two apps (cookbook, typo) work fine with Webrick but not with SCGI server. I tried changing the SCGI settings through the InstallRails.exe console so that the Runtime Mode: would be "development" instead of "production" and SCGI port: to 5000 instead of 9998.
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):
2006 Apr 10
4
First time with Rails
Hi this is my first time with Rails and I''m having problems getting it
to work properly. In the Database.yml file I have set up the following -
development:
adapter: mysql
database: cars
username: *****
password: *****
socket: /path/to/your/mysql.sock
host: *****
But, when I launch the controler it says -
NameError in Add_car#index
uninitialized constant Car
Where am I
2007 Jan 15
5
ActionController::UnknownAction (No action responded to xxx)
I have a new method defined in a existing controller.
All the methods I called in these are workable.
But somehow the new method is not recognizable.
------------------new method I
added--------------------------------------------
def push
# if fair
begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid product #{params[:id]}")
2007 Feb 12
1
Invalid char problem
Has the problem with corrupted .rhtmls (invalid characters) been solved
so far?
I would like to use ferret and acts_as_ferret on Windows XP. I have
installed 0.10.9 (mswin32) which still seems to have the problem.
I am receiving error messages like:
compile error
C:/INSTAN~1.4P1/INSTAN~1/rails_apps/travelogue/config/../app/views/article_editor/_header_read.rhtml:2:
parse error, unexpected
2006 May 25
1
AppMailer and McCray''s theme generator
Hi,
I am using Matt McCray''s theme generator.
http://rubyforge.org/projects/theme-generator/
Everything works fine, but rendering an action in a controller using
the AppMailer raises this:
undefined method `current_theme'' for #<AppMailer:0x39df950>
Is there someone who could help me ?
Thanks !
Mickael.
Traces:
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console.
BUt I got the following error.
Anyone knows why?
>> Net::HTTP.get_print ''www.google.com'', ''index.html''
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj''
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2008 Dec 15
2
Baffled: triggering error message with an sd result in odfWeave?
I hope someone can point out my stupid error, because I'm baffled.
I am calculating a bunch of variable values and then placing them in a
document using odfWeave tags.
This is working very nicely for every spot except one.
One of the values I calculate is traindev:
traindev <- if (trainlength>0) round(sd(trainscores, na.rm=T),1) else ""
when I try to insert this traindev
2006 Jan 17
10
Is STI the only way to do inheritance?
I''m currently coding a system which must store multiple contact methods for
a user (phone, email, postal address etc). I''m planning a fairly
straightforward inheritance hierachy for these, where each different method
inherits from something like a ContactMethod class.
The only mention of ActiveRecord support for inheritance I can find in the
Wiki and the Agile Web Dev book is
2006 Jun 08
3
Back again; errors in depot app
Sorry, but this is a big one - after adding the Ajax portion of the Agile
Web Development tutorial my page displays:
Application error
Change this error message for exceptions thrown outside of an action (like
in Dispatcher setups or broken Ruby code) in public/500.html
It started when I added -
page[:current_item].visual_effect :highlight,
:startcolor => "#88ff88" ,
:endcolor =>
2007 Sep 18
1
Errno::EACCES - Permission denied while delete a file
hi,
i got the error[Errno::EACCES - Permission denied] , while deleting my
file, for that while searching i came to know i have to set chmod, but i
don''t know how to set chmod in my file, if any one knows, how to set
this one, please let me know, Thanks in advance.
my Error is:
Errno::EACCES in CasesController#delete_attach
Permission denied -
2004 Jun 21
3
cannot join win2k to samba domain
i' ve client win9x connect to samba and seems running
good, but i cannot join win2k in to samba..any one can
give me a hand.....?!!
error mesasage no user or wrong password in samba domain
thanks
===========================================================================================
"Gabung INSTANIA, dapatkan XENIA. Daftar di www.telkomnetinstan.com, langsung dapat akses Internet
2007 Jun 01
2
Is aaf multi_search broken?
Hi all,
I want to use acts_as_ferret''s multi_search to search two model classes
(Reviewable and Blog) at a time like
@results = Reviewable.multi_search("jemen", [Blog])
and I''m always getting the error
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map
2004 Sep 03
18
Public IP
I have problem with IP public, my Network configuration
[wireless] <------> [Router] <------ > [ Linux proxy ] <
------ > [Client ]
IP configuration
[202.123.123.1] <------->[202.123.123.2 and 192.168.0.1] <
------ > [192.168.0.2 and 202.123.123.3] < ------ >
[202.123.123.4]
this configuration will use IP 202.123.123.2 on internet
how to config my network
2008 Oct 14
3
[LLVMdev] MINGW Compiler error.
Greetings,
I have a compiler error that I have not been able to get through. I
usually depend upon pre-built binaries but there was none available
for the pre-release. I also try scanning the web site and mail list
but was unable to find an answer. I was getting this or similar error
with 2.3. I am just trying to build with the core library. I tried
this in a xp and vista VM with the
2006 Jul 14
2
browser connection issue to http://localhost:3000/ on XP ?
http://www.ruby-forum.com/topic/73035#new
Hi,
I think I have network issue on my XP PC here trying to run up
InstantRails and using it. I create an application and run up the
server "ruby scripts/server" and it runs up, but then when I try to
browse to it the browser just sits and spins and doesn''t connect :(
Note that I posted this at
2008 Oct 14
0
[LLVMdev] MINGW Compiler error.
Resend
On Oct 14, 2008, at 5:40 AM, Mark Kromis wrote:
> Greetings,
>
> I have a compiler error that I have not been able to get through. I
> usually depend upon pre-built binaries but there was none available
> for the pre-release. I also try scanning the web site and mail list
> but was unable to find an answer. I was getting this or similar
> error with 2.3. I am