I am using the daemons plugin.
I have just one problem how do i add modules from the /lib folder to
the /lib/daemons/daemon.rb file
eg. /lib/basic_functions.rb
this is the file i want to load in daemon.rb
contents daemon.rb:
#!/usr/bin/env ruby
# You might want to change this
ENV["RAILS_ENV"
On 6 avr, 17:23, Frederick Cheung wrote:
> On Apr 6, 11:09 pm, Constantin Gavrilescu
>
> wrote:
> > I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
> > test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
> > activesupport-2.3.2/lib/active_support/test_case.rb:17: su
def test_valid
assert_valid State.first
end
Error:
test_valid(StateTest):
NoMethodError: undefined method `assert_valid' for #
I see that test_valid is now in
ActionController::Assertions::ModelAssertions. Does this mean that
test_valid is designed to be used i ActionController tests on
I am using netbeansIde 6.5 for ROR developmaent in that "how to install
Plugins and ruby gems?"
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
$ rdebug ./script/server would help
(Have to enter "c" after starting)
On Apr 7, 11:00 am, Daniel Tinivella wrote:
> James Byrne wrote:
> > Eric J wrote:
> >> I installed mongrel and tried it, but no debugging luck. I tried
> >> adding Debugger.start after the 'require "ruby-debug"'.
>
> >> Is t
ti...@creek:/home/tinix/test/grin# gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install ruby-debug
extconf.rb:1:in `require': no such file to load -- m
Count operates using three different approaches.
* Count all: By not passing any parameters to count, it will
return a count of all the rows for the model.
* Count using column: By passing a column name to count, it will
return a count of all the rows for the model with supplied column
Most time what's wrong is the smtp server.
You should check the smtp server in your machine. If it works well
when you use other client-email application to connect it, please
check the email settings.
And then, you can set the settings to other server.
Such as gmail.
For gmail, you should know th
James Byrne wrote:
> Eric J wrote:
>> I installed mongrel and tried it, but no debugging luck. I tried
>> adding Debugger.start after the 'require "ruby-debug"'.
>>
>> Is there a debug flag that you need to add to the start up command?
>
> script/server --debugger
This is the command correct ..
Here's your problem in rails:
Your web server is "single" threaded, so while you scrapping, its not
doing anything else, so you will
need more mongrels to take care of the users.
Generally you scale by having more threads, and cpu working on the
problem.
The database is probably not going to be
Hi all,
I've got a little remote uploader app (written in Ruby Shoes) that
uses Mechanize to create a new object (I think mechanize works by
submitting an http form).
I'd like to take Mechanize out of the equation and do a straight HTTP
POST (authenticated).. but I'm having problems with how to
I believe that you are trying to allow multiple administrator accounts
to be added when creating a company.
To do so, you will need multiple fields_for as you cannot just do this
for a collection. Looking at it, it looks like it should give an error
instead of just displaying nothing. Actually I
I couldn't really get your question, but I think that what you are
trying to do here is to create a many to many relationship.
Rails actually provides the has_and_belongs_to_many association for
this very purpose, which should help you with what you are asking (I
think).
http://guides.rubyonrail
You might want to try inspecting the params in the controller, add a
"raise params.inspect" into your update action.
I suspect that it is because you have not provided fields for with the
parent form, like so:
<% f.fields_for @account.owner do |i|%>
If you don't put the "f." in front, rails wil
You want to execute multiple inserts in a single response, not
multiple responses. This might work, assuming that the rest of your
code works and that you are using attachments as the relationship
name.
def create
@project = Project.find(params[:id])
params[:attachment].each do |key, value|
hi..
i'm new at ruby on rails..
first i have a table with a column named status(this column use to store
a status of an access point ("online" or "offline") after my application
have done pinging the access point)
i use a net-ping library..
how can i update the data in column status "automatica
pharrington wrote:
> Alternatively, you can just use the current_page? method:
>
> if current_page? foo_url
> #do some ish
> elsif current_page? bar_url
> # other stuff...
Hey, I like that too -- thanks!
-dave
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~
Hi guys and gals.
I don't know how to explain this too well, so I'll try my best and post
some obviously dysfunctional code (just so you can get the idea of what
I'm after if my explanation doesn't do it.)
What I want to do is create an upload form that users can upload more
than one item with.
Thanks, that's just what I was looking for. I'll just write my own custom
validations.
Josh
On Mon, Apr 6, 2009 at 4:19 PM, Frederick Cheung wrote:
>
>
>
> On Apr 6, 9:32 pm, Josh Rachner wrote:
> > So, the validation is something like this...
> >
> > validate_duplicate_artist(artist_id, venu
form_for(@post) breaks too.
On 7 апр, 03:03, Skaurus wrote:
> And url-generation for this routes a pretty ugly in views: instead of
> show_post_path I write now show_post_url(:user_id =>
> post.author_id, :post_id => post.id)
>
> Maybe some another way?
--~--~-~--~~~-
And url-generation for this routes a pretty ugly in views: instead of
show_post_path I write now show_post_url(:user_id =>
post.author_id, :post_id => post.id)
Maybe some another way?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Should look more like this:
map.resources :customers,
:member => { :info_for_account_form => :post },
:has_Many => :accounts
map.resources :owners,
:member => { :info_for_account_form => :post },
:has_many => :accounts
map.resources :usertypes,
:has_many => :accounts
map.resources
Given the following models:
class Uptime < ActiveRecord::Base
has_many :pings
end
class Ping < ActiveRecord::Base
belongs_to :uptime
end
I can create an ActiveResource that will get the uptimes and ping models:
class UptimeResource < ActiveResource::Base
self.site = "http://localhost:300
On 6 avr, 17:23, Frederick Cheung wrote:
> On Apr 6, 11:09 pm, Constantin Gavrilescu
>
> wrote:
> > I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
> > test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
> > activesupport-2.3.2/lib/active_support/test_case.rb:17: su
Hey everyone,
I need some help. I have an accounts controller, and am working with
the show view. Each account has an "owner" and a "customer". I can
create the accounts/owners/customers just fine, but when it comes to
updating I can't. I have a single account view, that uses a form, and
the "fie
When i run find_by_sql the extra fields not in the Model are returned
as Strings.
What is the correct way to convert all the extra fields to their correct
type? Is there a way to somehow define these extra fields in the Model
class to ensure they will always be returned correctly? Or is their
On Apr 6, 11:09 pm, Constantin Gavrilescu
wrote:
> I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
> test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
> activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
> mismatch for class TestCase (TypeError)
>
>
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgr
Actually the question would be better put this way:
Having a has_one association via a link table (in this case
products_supplier).
Thanks.
On Mon, Apr 6, 2009 at 3:41 PM, Marcelo de Moraes Serpa wrote:
> Let's say we have the following models:
>
> Product < ActiveRecord::Base
> has_many :pr
On Apr 6, 10:36 pm, sporkit wrote:
> To sum this up, gem install mysql crashes when looking for version.h.
> This is happening after a fresh install of Ruby, Ruby Gems, and the
> Mysql gem. Shouldn't a fresh install of ruby create version.h and
> place it in the correct directory?
I think vers
To sum this up, gem install mysql crashes when looking for version.h.
This is happening after a fresh install of Ruby, Ruby Gems, and the
Mysql gem. Shouldn't a fresh install of ruby create version.h and
place it in the correct directory?
john: uname -a
FreeBSD sporkit.com 6.1-RELEASE FreeBSD 6.
Hey Freddy,
So I'm not sure if my routes file is setup correctly after your last
comment. Would you mind taking a look at it?
ActionController::Routing::Routes.draw do |map|
map.resources :customers, :has_Many => :accounts
map.resources :customers, :member => {:info_for_account_form
=> :pos
Hi,
I'm thinking of re-creating the whole app completely. It is not public
yet. But I don't get this error.
On the site I just get "Application error Rails application failed to
start properly". And then those "undefined method `empty?' for
nil:NilClass"
Everything was just working fine, the
Company: Eborhood
Industry: Ecommerce/communication/Real Estate - map-based search,
communication, and execution
Location: Based in Texas
Pay: over $50K-$250K - more if you're worth it
We are in need of a programmer that has a great set of ruby/rails
skills. We have had a few problems hitting de
On Apr 6, 9:32 pm, Josh Rachner wrote:
> So, the validation is something like this...
>
> validate_duplicate_artist(artist_id, venue_id, event_time)
>
> rather than a validate_xxx_of type deal, these are more in depth
> validations...
>
> does that make sense? i figured the best place would be
To be honest, I really don't know what's going on, but I would try
commenting out the image_tag. First of all, it is probably causing another
trip to the DB per user. Second, I don't know how heavy the images are, but
using height and width may be hiding the fact that they're big, and you're
just u
Hey Ruby\Rails users, (like me)
I know that Prototype (*cough* "jQuery")is the library of choice for
most rails developers. When it comes to enterprise level apps and having
an extensive commercially supported library, you cannot beat ExtJS. If
you want a great case study, look at SalesForce.com
I tried dropping ALL the tables in the PostGreSQL database and running
rake db:migrate again. This results in the very same error messages
as before. As the system was running successfully before the power
outage, I'm of the opinion that there is something else going on
here...perhaps there's a
When I leave the params off and just go for a straight index, I'm
still seeing this:
Processing UsersController#index [GET]
Parameters: {"action"=>"index", "controller"=>"users"}
User Load (5.6ms) SELECT * FROM `users` ORDER BY users.created_at
DESC LIMIT 0, 10
SQL (0.4ms) SELECT count(
While this does not bear directly on your present problem I suggest that
you at least consider installing cygwin for your Ruby development
environment. I found that the effort in getting the bits and pieces of
Ruby, Rails, various DBMS and gems to work on my MS-XP pro laptop was
greatly eased
Obviously not in the estimation of the mongrel server and interacting
code, but the database records are there and the id does exist.
Arthur
On Apr 6, 1:36 pm, Freddy Andersen wrote:
> Does this line produce a product?
>
> Product Load (1.0ms) SELECT * FROM "products" WHERE
> ("products"."id"
Let's say we have the following models:
Product < ActiveRecord::Base
has_many :products_suppliers
has_many :suppliers, :through => :products_supplier
Supplier < ActiveRecord::Base
has_many :products_suppliers
has_many :products, :through => :products_supplier
ProductsSupplier < ActiveRecord:
Does this line produce a product?
Product Load (1.0ms) SELECT * FROM "products" WHERE
("products"."id" = 1)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send
So, the validation is something like this...
validate_duplicate_artist(artist_id, venue_id, event_time)
rather than a validate_xxx_of type deal, these are more in depth
validations...
does that make sense? i figured the best place would be somewhere in the
model, but with the way it is set up,
On Apr 6, 4:40 pm, James Hall
wrote:
> I believe this might have already been discussed but i have recently
> been thrown an application that was written for rails 1.2.6, and i have
> been given the task to upgrade it (please note that im super to new to
> ruby as well, but we can't really do a
Yes all you need is the second statement. If you have both try running
the command rake routes from the rails root directory it will show you
what the two would do.(Or the one if you remove the top one.) THe
second line could also be written like
map.resources :customers do |customer|
customer.
On Apr 6, 6:42 pm, "josh.rach...@gmail.com"
wrote:
> I need to put a set of validations in a place that can be accessed by
> multiple controllers...
That doesn't entirely make sense - validations are a model thing. are
you trying to share code between models ?
Fred
> do I just place them in
Awesome, thanks!
On Apr 6, 8:50 am, Greg Donald wrote:
> On Sun, Apr 5, 2009 at 5:44 PM, RobR wrote:
>
> > What DB connector do I need to talk to a network accessible Oracle
> > server: 1) with ActiveRecord?, 2) to perform basic SQL. I'm more
> > familiar with what it takes to get MySQL workin
Hey Everyone,
I'm wondering if the statement below are redundant? Once you define
the resources for a particular controller, that should be it right?
I'm assuming all I need is the second statement below.
map.resources :customers
map.resources :customers, :has_many => :accounts
Thanks!
Chris
eengnerd wrote:
> Nice idea, but I don't have any books or tutorials on that...don't
> even know how to start the debugger.
>
> Arthur
A quick Web search on the subject would give you the answer. (FWIW, I
was equally unenlightened about the debugger till about 2 days ago.)
Best,
--
Marnen Lai
Hello Fred,
With Ruby and Rails a whole new experience its sometimes difficult to
even frame a coherent question. So thank you your answers and for
going a step further and adding some very helpful explanation. It
clarified my thinking
Since I don't want to operate without protect_against_forg
There are lots of tutorials. Also look at the rails guides and railscasts. I
can't point to them off the top of my head but I am sure google will find
them.
2009/4/6 eengnerd
>
> OK, got ruby-debug installed and issued the command: script/server -u
> Got running in debug mode. No more info than
If you cannot see why the object at line 9 in store_controller.rb is nil
then now is your chance to learn about ruby-debug. Have a look and see what
is happening. (I don't know the answer).
2009/4/6 eengnerd
>
> I was successful in reaching page 184 in the book "Agile Web
> Development with Ra
OK, got ruby-debug installed and issued the command: script/server -u
Got running in debug mode. No more info than before. Now what?
Arthur
On Apr 6, 12:24 pm, eengnerd wrote:
> Nice idea, but I don't have any books or tutorials on that...don't
> even know how to start the debugger.
>
> Arthu
I need to put a set of validations in a place that can be accessed by
multiple controllers... do I just place them in application.rb?
Thanks,
Josh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Tal
Nice idea, but I don't have any books or tutorials on that...don't
even know how to start the debugger.
Arthur
On Apr 6, 12:16 pm, Colin Law wrote:
> If you cannot see why the object at line 9 in store_controller.rb is nil
> then now is your chance to learn about ruby-debug. Have a look and se
Leon wrote:
> Hi,
>
> I am doing some examples in a book on Roby on Rails. When a model
> class is create with generate model command, it will create some
> find_xxx methods on the fields. When the model have the relationships
> with other models, the more find_xxx methods will be generated. How
I was successful in reaching page 184 in the book "Agile Web
Development with Rails" 3rd edition and while running the website with
PostGreSQL as the backend, the power went down. The PostGreSQL
database contents look OK and so do the source code files I was
editing. But whenever I click on any
I tried a bunch of different searches, and it's actually loading
reasonably quickly still... < 500ms at least.
Also, in the process I upgraded from Rails 2.2.1 to 2.3.2, so maybe
that helped somewhat too.
-Avishai
On Apr 6, 2:13 pm, Harold A. Giménez Ch.
wrote:
> This is good to know.
> "Com
> <%= f.text_area :content, {onkeyup="strcount(1);chngcnt(1);"
> onkeydown="chngcnt(1);" onblur="chngcnt(1);" onfocus="chngcnt(1);} %>
The errors come from Ruby - inside the <%%> tag - not from Javascript.
Google for [ruby option hash], and compare it to what you wrote. You need more
symbol
You could also check out the guides at:
http://guides.rubyonrails.org/active_record_querying.html#dynamic-finders
On Apr 5, 1:50 pm, Leon wrote:
> Hi,
>
> I am doing some examples in a book on Roby on Rails. When a model
> class is create with generate model command, it will create some
> find_
Hi all,
I'm trying to use nested object forms for the signup page of an app to
create the client record as well as the admin user. My problem is
that everything in the fields_for the associated record is not getting
rendered from the view -- not the fields, not the html, nothing.
How can I make
Solved.
<%= f.label :content %>
<%= f.text_area :content,
:id=>"message1",:onkeyup=>"strcount(1);chngcnt(1);"
,:onkeydown=>"chngcnt(1);" ,:onblur=>"chngcnt(1);",
:onfocus=>"chngcnt(1);" %>
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~--
I have following code. I have included the javascript file at the top of
page. Still it is giving errors
CODE:
<%= f.label :content %>
<%= f.text_area :content, {onkeyup="strcount(1);chngcnt(1);"
onkeydown="chngcnt(1);" onblur="chngcnt(1);" onfocus="chngcnt(1);} %>
ERROR:
compile er
This is good to know.
"Completed in 319ms (View: 288, DB: 27)"
319ms is not hardly close to your original 11386ms.
I notice that your params below do not have any of the "search" criteria
([:user][:interests], etc). If you run the view using the criteria, does
performance degrade?
On Mon, Apr 6,
Actually, the example I cited had two steps to it:
1) add "require 'ruby-debug' to "config/environments/development.rb"
2) add "debugger" to the your application file of interest just before
you want the debugging session to start
This removes the need for the -u flag to script/server and enter
What are the "latest" gems/rails and ruby that you have installed?
here is some information that would be useful to use:
$ port list | grep mysql
$ mysql5 --version
$ port list | grep lang/ruby
$ gem list
$ ruby -v
On Apr 5, 11:20 pm, Scott Corgan wrote:
> I have all the latest gems, rails, an
Interesting. Maybe something is going on in the controller. I've tried
running the resulting SQL queries directly, and they still seem to be
fetching pretty quickly...
The controller contains a lot of conditionals, maybe that's the issue?
I've used Newrelic RPM to analyze my SQL, and it looks lik
I'm new to Ruby/Rails and trying to understand Time/Date/DateTime. I
came across this weirdness while playing around and was wondering if
someone can tell me what is going on here:
>> w = Work.find(9)
=> #
>> w.created_at.class
=> ActiveSupport::TimeWithZone
>> w.created_at
=> Mon, 06 Apr 2009 16
Fred, I took your suggestion to up the log level and this is what it
reveals:
Processing UsersController#index [GET]
Parameters: {"action"=>"index", "controller"=>"users", "page"=>"11"}
User Load (26.0ms) SELECT * FROM `users` ORDER BY users.created_at
DESC LIMIT 100, 10
SQL (0.2ms) SEL
On 6 Apr 2009, at 17:53, dino d. wrote:
>
> Hi - I want to add a feature to my comment forum where anytime someone
> types in @username, I can grab the username, make sure it's valid, and
> if so, replace it with a link to that user's profile. So, I think I
> want something like:
>
>
> comment
On 6 Apr 2009, at 16:14, Avishai wrote:
>
> Hi,
>
> I've been experiencing some severe slowness in rendering the views in
> my users/index action. It's really not doing anything fancy at all,
> and has been driving me nuts the last few days. I'm running Rails
> 2.2... does anyone have any idea h
Did you run this on your Mac:
"gem update —system"
If so, you might have bricked your install from the get-go.
What I did was I re-installed the OS (not a big deal for me at the
time) and just ran "gem update"
No problems from then on out.
On Apr 5, 3:19 am, Scott Corgan wrote:
> I've tried
Hi - I want to add a feature to my comment forum where anytime someone
types in @username, I can grab the username, make sure it's valid, and
if so, replace it with a link to that user's profile. So, I think I
want something like:
comment = comment.gsub("/@[A-Za-z0-9]*/", ?)
How do I grab the
Hello,
sorry for answering so late.
> Guillaume, merci bien pour votres enquêtes.
You're welcome. Thanks for your work, Nick.
> I can certainly make the fix, but if possible it would be nice to have
> an Oracle test to verify the problem and ensure we don't regress. Can
> you tell me how the c
I have an RoR application with a BackgrounDRb server that has a worker
which invokes a function in the worker every 5 seconds. I have this set
up in my background.yml as
---
:backgroundrb:
:ip: 0.0.0.0
:port: 11006
:schedules:
:my_worker:
:do_something:
:trigger_args:
I can't find anything fundamentally wrong on your views, but we
haven't seen any controller and model code.
Try benchmarking/profiling your app to find out exactly what the
bottleneck is. See http://guides.rubyonrails.org/performance_testing.html
A good start may be your DB. What RDMS are you us
> basically the pervious person was doing an ajax call using
> "path/to5.xml?_method=delete"
>
> and then posting, however with 2.3.2, this is no longer allowed?
You might try posting the _method parameter instead of including it in the
querystring.
SH
--
Starr Horne
Check out my Helpdesk Rai
Is it approved of to use the id as a meaningful number? I have always
assumed that you should not do this as, for example, once you have added
number 1000 and deleted it (possibly by mistake) you cannot ever use this
number again (without hacking). If you need a meaningful number then I
would sug
I have a rather strange problem !!
I am using hpricot as an XML parser in my ruby/rails application
In my local mac developing environment (rails 2.3.2, ruby 1.8.6, msql
2.7, hpricot 1.8.1) everything works fine.
However, when I deployed my application on a shared linux server using
the same hpr
Duggan Roberts wrote:
> Thank you very much. You are right about the id and that is sufficient
> for
> me to use as ticket id. Now just for personal know how, How can I change
> the
> id from numbering 1,2,3 to 1001, 1002, 1003?
>
> On Sun, Apr 5, 2009 at 1:16 PM, Michael Satterwhite <
Either
Fernando Perez wrote:
>
>> Okay in the end macports was more trouble than good but installed ruby
>> 1.8.7 from source now console works fine. Thanks for all the help.
>> regards
>> c
>
> Why more trouble? Usually macports is cool. However for Ruby I find it
> easier to compile it manually.
I believe this might have already been discussed but i have recently
been thrown an application that was written for rails 1.2.6, and i have
been given the task to upgrade it (please note that im super to new to
ruby as well, but we can't really do anything about that)
basically the pervious pers
Fred,
I made sure that permissions on mysql.so have read/write on all groups/
users.
still getting the same error:
!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
rake aborted!
126: The specified module could not b
I have found this site to be consistently useful
http://newwiki.rubyonrails.org/database-support/mysql
I used this command:
$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/
lib \
--with-mysql-include=/usr/local/mysql/i
Just found the answer
it's worth noting that R2.0.2 subclasses ActionController::TestCase
for functional tests (i.e. UserControllerTest), not
ActiveSupport::TestCase. You need to explicitly change the skeleton
test files for (user|spec|etc)_controller_test.rb files to subclass
ActiveSupport::Tes
Thank you very much. You are right about the id and that is sufficient for
me to use as ticket id. Now just for personal know how, How can I change the
id from numbering 1,2,3 to 1001, 1002, 1003?
On Sun, Apr 5, 2009 at 1:16 PM, Michael Satterwhite <
rails-mailing-l...@andreas-s.net> wrote:
>
> k
Hi,
I've been experiencing some severe slowness in rendering the views in
my users/index action. It's really not doing anything fancy at all,
and has been driving me nuts the last few days. I'm running Rails
2.2... does anyone have any idea how to resolve this? Look at home
much time is being con
On Mon, Apr 6, 2009 at 7:41 AM, haritha syamala
wrote:
> Hello people ..
>
> In my application I have user registration, i am using remote_form_for and
> lightbox for registration.
> after successful registration cant able to come out of lightbox with
> redirection.
> how can i redirect from that
Gary Taylor wrote:
> I had this issue, and to start with, I followed various blogs to set
> the location of the mysql libraries etc.. However, when I did it
> yesterday, I simply installed the 32 BIT mysql package directly from
> the mysql web site (64 bit wont work apparently). Then I did 'sudo
On Apr 2, 8:46 pm, Bryan wrote:
>
> 126: The specified module could not be found. - C:/Ruby/lib/ruby/
> gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so
I've seen at least one person say that this can happen if the
permissions on mysql.so aren't right (i think executable has to be
true or
David Knorr wrote:
> On 6 Apr., 15:36, Mitchell Gould
> wrote:
>> � @valid_user = users(:valid_user)
>> The error occurred while evaluating nil.screen_name
>>
>> It seems that this class isn't storing the instance variables in memory.
>>
>> Any ideas.
>>
>
> The above should work just fine, give
On Sun, Apr 5, 2009 at 11:19 PM, Rick wrote:
>
> This is a little bit dated but the way to go is here:
>
> $ script/server
This should be
script/server -u
to enable debugging.
--
Greg Donald
http://destiney.com/
--~--~-~--~~~---~--~~
You received this messa
On Sun, Apr 5, 2009 at 6:50 PM, Leon wrote:
> I am doing some examples in a book on Roby on Rails. When a model
> class is create with generate model command, it will create some
> find_xxx methods on the fields. When the model have the relationships
> with other models, the more find_xxx methods
Kirpal Sachdev wrote:
> I have the following questions:
That's homework, right?
The rules are, you have to make an attempt, and post part of it, with _your_
question about it. Don't just copy in your assignment verbatim!
(Also, your professor is doubtless teaching you to unit test as you go,
On Sun, Apr 5, 2009 at 5:44 PM, RobR wrote:
>
> What DB connector do I need to talk to a network accessible Oracle
> server: 1) with ActiveRecord?, 2) to perform basic SQL. I'm more
> familiar with what it takes to get MySQL working with AR. Currently I
> have AR 2.1.1, Ruby 1.8.5. I'll have t
Hello people ..
In my application I have user registration, i am using remote_form_for and
lightbox for registration.
after successful registration cant able to come out of lightbox with
redirection.
how can i redirect from that action(to comeout of lightbox).
is it possible to do that?
Thank
On 6 Apr., 10:51, Saurabh Peshkar
wrote:
> Hi All,
>
> I'm trying to connect another database using rails
>
> I made changes in database.yml file
>
> I succeed in that but with same table name,
>
> I'm having two issues regarding that:
>
> 1) How to connect the specific table of another databas
On 6 Apr., 15:36, Mitchell Gould
wrote:
> I have the following in my functional test file.
>
> class UserControllerTest < ActionController::TestCase
> fixtures :users
>
> def setup
> @controller = UserController.new
> @request = ActionController::TestRequest.new
> @response = Act
Bharat-
Yes, I can successfully connect to mysql via command line. Yes, I
have added mysql to my windows path. I'm not using InstantRails- I
have installed everything piece by piece.
Deepali-
mysql 5.0 is stable.
On Apr 3, 8:51 am, deepali_k wrote:
> check your mysql database version,mysql 5
1 - 100 of 151 matches
Mail list logo