[Rails] autocomplete word by word

2012-05-06 Thread rubix Rubix
Hi, I am trying to implement an autocomplete form with rails, I used jquery in a first version, to suggest phrases to user and it worked Now I am trying to have a service of autocomplete word by word, it means when the user it typing in the text area, I suggest only words and not phrases and when

[Rails] text_field_value

2012-05-05 Thread rubix Rubix
Hi, I have a text_field_value that I want to set the value dynamically, I use this script: $(function() { $(#keypress).keypress(function() { alert(from keypress); $(this).value = a ; return false; }) }) the alert is shown but the value of the

[Rails] Re: slow will_pagination

2012-03-09 Thread rubix Rubix
thx for ur answer, Yes I am working on dev env and it can explain the slowness in server log, I see that every time I change the page it execute a sql query using limit and offset regards, -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] slow will_pagination

2012-03-06 Thread rubix Rubix
Hi, I am realizing my first application in Rails (with tutorials), I implement a pagination solution with will_paginate gem, it works well but the problem is: changing pages is very slow and I think the query is executed every time the page is changing Is there a solution to get faster pagination

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-28 Thread rubix Rubix
Ok, I dropped the schema blog, I change the pwd and I change the adapter like this: development: adapter: mysql2 encoding: utf8 database: blog_dev pool: 5 username: root password: socket: /tmp/mysql.sock I execute rake db:create and I get the following error stack: ** Invoke

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-28 Thread rubix Rubix
I found this too in internet, but I don't know how to do it? how to get gem mysql2 in gemfile and what gemfile exactly? regards, -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-28 Thread rubix Rubix
I changed the gem file and succeeded with the db:create and created the three databases only for once after that I can't use any of my mysql database connections not only in ror applications the message is : Access denied for user 'root'@'localhost' (using password: YES)

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-28 Thread rubix Rubix
I download the lib libmysql.dll and I delete the line about password and It worked (i have a routing error but this is not serious) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-27 Thread rubix Rubix
hi, this is the stack trace: activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in `retrieve_connection' activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `retrieve_connection' activerecord (3.1.3)

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-27 Thread rubix Rubix
rake db:create : ends without any message rake db:migrate: ends with error message ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Invoke db:load_config (first_time) ** Invoke rails_env (first_time) ** Execute rails_env ** Execute db:load_config rake

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-27 Thread rubix Rubix
It was just a copy/paste error, and I change it as fast as possible please erase the part of the pwd else I try it too with mysql2 and I had the same message I create the db manually with Mysql workbench regards, -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] ActiveRecord::ConnectionNotEstablished

2012-02-26 Thread rubix Rubix
Hi, I am trying the tutorial in: http://guides.rubyonrails.org/getting_started.html when I try to navigate to http://localhost:3000 after the 4.3 change I get the error : ActiveRecord::ConnectionNotEstablished and I don't know how to solve it the database.yml file is: adapter = mysql host =

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2012-02-26 Thread rubix Rubix
yes rake db:create succeded, it ended without error I used mysql2 and didn't work too -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to