Hello guys,
Im new to RoR, and i was trying to make some thing with auto_complete..
But i can't install auto_complete plugin :
https://github.com/rails/auto_complete
I have tried to install others plugins and it always gives me the message :
Plugin not found:
The code sample you provided is very common and many respectful Rails
developers use it.
If we go out of the scope of Rails and start speaking very strictly
about MVC, then probably we can say that it is not actually the
controller's job to do that type of things. But I think that
render :update
On 24 December 2010 03:59, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Robert Walker wrote in post #970390:
Marnen Laibow-Koser wrote in post #970377:
Then use fixed-point math. IEEE floats are 100% inappropriate for any
sort of mathematical calculation. And who cares how fast they are
On 24 December 2010 02:19, Fernando Leandro
fernandoleandro1...@gmail.com wrote:
Hello guys,
Im new to RoR, and i was trying to make some thing with auto_complete..
But i can't install auto_complete plugin :
https://github.com/rails/auto_complete
I have tried to install others plugins and
On 24 December 2010 03:59, Marnen Laibow-Koser li...@ruby-forum.com wrote:
[...]
I'm not sure Float has a proper use case at all. :)
Consider table containing the masses of objects. Columns description
and mass (kg), with the following records
apple, 0.2
earth, 5.9742E24
sun, 1.98892E30
super
just to add, the machines that I have used that exhibit this behaviour
are ubuntu 9 and 10.04.
Thank you
--
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 rubyonrails-t...@googlegroups.com.
To
On 24 December 2010 08:23, ct9a anexi...@gmail.com wrote:
hi guys
I have a working rails application. I have rails 2.3.9 installed in
my existing dev prod machines.
When I run script/server, i keep getting an indication that rails
2.3.2 is being used.
The message reads, Loading
Hi,
Are you using bundler ? If so please do check bundle show rails on your root
and check which version is being used.
--
Thanks Regards,
Dhruva Sagar http://dhruvasagar.net.
On Fri, Dec 24, 2010 at 16:19, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 08:23, ct9a
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
@Dhruva - no, I am not running bundler
--
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
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please don't top post, it is easier to follow the thread if you insert
your post into the previous reply. Thanks
Can you show the complete output of
On 24 December 2010 11:34, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please don't top post, it is easier to follow the thread if you insert
your post
hi guys,
I have a new development server (ubuntu 10).
I have done the following (the versions match my existing development
machine which works fine):
1. installed ruby 1.9.1p378
2. installed ruby gems 1.3.7
3. installed rails 2.3.8 (used gem install rails -v 2.3.8)
4. manually installed my
On 24 December 2010 22:34, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please don't top post, it is easier to follow the thread if you insert
your
On 24 December 2010 11:41, Gordon Yeong anexi...@gmail.com wrote:
On 24 December 2010 22:34, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please don't top post, it is easier to follow the thread if you insert
your post into the previous reply. Thanks
Can you show the
Marnen Laibow-Koser wrote in post #969841:
You're using eval (almost never necessary in Ruby --
send is usually what you want).
How in Ruby does one create a variable and then set a value for it
without using eval?
That is, I have a string named xyz and I want to create a variable
named xyz
On 24 December 2010 12:16, Gordon Yeong anexi...@gmail.com wrote:
On 24 December 2010 11:27, ct9a anexi...@gmail.com wrote:
@Colin - running gem list --local, I observed rails is only 2.3.9
(ie. rails (2.3.9))
Please don't top post, it is easier to follow the thread if you insert
Hmmm I'm pretty sure my older development and production servers have no
trace of 3.0.3 gems. That is because I started developing since rails 2.3.2
and the project was live when rails 2.3.5 was out.
Any ideas? My new server has ubuntu 10 whereas the other servers (which run
the app fine) are on
Hello Colin,
Im using Windows 7 Ultimate, Ruby 1.8.7 and Rails 2.3.5..
No.. i haven't installed it manually, but... doesnt it comes with rails?
because there's a git.rb in the folder
C:\Ruby187\lib\ruby\gems\1.8\gems\rails-2.3.5\lib\rails_generator\generators\applications\app\scm.
Thanks for
Hi all,
I just released rails_best_practices 0.6.0, I did a lot of refactorings,
created rdoc webiste and google group, check out the announcement
herehttp://rails-bestpractices.com/blog/posts/2-announcement-rails_best_practices-0-6-0-released
.
--
Best regards,
Richard Huang
On Fri, Dec 24, 2010 at 4:54 AM, Fernando Leandro
fernandoleandro1...@gmail.com wrote:
No.. i haven't installed it manually, but... doesnt it comes with rails?
No. You need to install it.
because there's a git.rb in the folder
You *can* open that up and read it, you know :-)
--
Hassan
I have just installed git via msysGit, it even changed my windows command
promt style..
but i still trying to execute ruby script/plugin install
http://github.com/rails/auto_complete.git/ and i get the same error... it
says Plugin not found...
Im executing this at my project's folder, is it
On Dec 24, 10:17 am, Fernando Leandro fernandoleandro1...@gmail.com
wrote:
I have just installed git via msysGit, it even changed my windows command
promt style..
but i still trying to execute ruby script/plugin
installhttp://github.com/rails/auto_complete.git/and i get the same error...
On 24 December 2010 12:39, Gordon Yeong anexi...@gmail.com wrote:
Hmmm I'm pretty sure my older development and production servers have no
trace of 3.0.3 gems. That is because I started developing since rails 2.3.2
and the project was live when rails 2.3.5 was out.
Any ideas? My new server
On 24 December 2010 12:54, Fernando Leandro
fernandoleandro1...@gmail.com wrote:
Hello Colin,
Im using Windows 7 Ultimate, Ruby 1.8.7 and Rails 2.3.5..
Sorry I can't help in that case, Rails on Windows is fraught with
difficultly I believe. I think that most here would suggest you look
at
Resolved!
the script/plugin install is still not working but i could install plugins
using git clone git://github.com/rails/auto_complete.git
Thanks!
2010/12/24 Colin Law clan...@googlemail.com
On 24 December 2010 12:54, Fernando Leandro
fernandoleandro1...@gmail.com wrote:
Hello Colin,
hello, Colin,
I will put in a new OS image on the development machine and will see how it
goes from there.
Meanwhile, thank you and merry christmas, Colin!
Gordon
On 25 December 2010 00:29, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 12:39, Gordon Yeong anexi...@gmail.com
On 24 December 2010 13:45, Gordon Yeong anexi...@gmail.com wrote:
hello, Colin,
I will put in a new OS image on the development machine and will see how it
goes from there.
It is nothing to do with the OS, ubuntu does not come with ruby or any
gems installed. There is no need to re-install.
Yes, Colin is right.
There is no need to re-install ubuntu, rather go for rvm.
RVM is an excellent tool for managing ruby versions as well as your gemsets
with a ruby version. Try it out.
If you find rvm intimidating and troubling you, here's a way around it.
Uninstall all your gems and then
Hackers,
Programmers generally do not have Christmas holidays, they just get time to
document their code, ready for archiving. They never experience New Year's
fun, it turns out to be a day for rendering their old code obsolete. :-)
It has been very wonderful learning from you. I do not take
Ralph Shnelvar wrote in post #970469:
Marnen Laibow-Koser wrote in post #969841:
You're using eval (almost never necessary in Ruby --
send is usually what you want).
How in Ruby does one create a variable and then set a value for it
without using eval?
There are several methods to do just
Hi,
I'm getting this strange behavior when I try to run search for
images using Google Images API. I suspect it's because of my code and
not the API itself, here's what I wrote:
uri = URI.parse(https://ajax.googleapis.com/;)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl =
Colin Law wrote in post #970449:
On 24 December 2010 03:59, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
[...]
I'm not sure Float has a proper use case at all. :)
Consider table containing the masses of objects. Columns description
and mass (kg), with the following records
apple, 0.2
Colin Law wrote in post #970447:
On 24 December 2010 03:59, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
x = BigDecimal.new('1')
= #BigDecimal:102c078,'0.1E1',4(8)
y = BigDecimal.new('3')
= #BigDecimal:10388f0,'0.3E1',4(8)
z = x / y
= #BigDecimal:103680c,'0.E0',8(16)
In the
ivanpoval wrote in post #970446:
The code sample you provided is very common and many respectful Rails
developers use it.
If we go out of the scope of Rails and start speaking very strictly
about MVC, then probably we can say that it is not actually the
controller's job to do that type of
Colin Law wrote in post #970471:
On 24 December 2010 12:16, Gordon Yeong anexi...@gmail.com wrote:
You have not provided the gem list output
Here:
--- Start -
*** LOCAL GEMS ***
actionmailer (2.3.9)
actionpack (2.3.9)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.9)
So you
Hi,
I am new to rubyonrails..i created one dropdownbox(select tag)
I created database with tablename(products).it
contains(id,title,price,gender).I can load all title into the
dropdwonbox.suppose if i select any title means i should display
the corresponding price value..what can i do for that..
On 24 December 2010 14:25, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Colin Law wrote in post #970447:
On 24 December 2010 03:59, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
x = BigDecimal.new('1')
= #BigDecimal:102c078,'0.1E1',4(8)
y = BigDecimal.new('3')
=
On Dec 24, 2:21 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Colin Law wrote in post #970449:
If I did need arbitrary precision, and the DB didn't provide a
BigDecimal-like type, I'd store them as strings.
Which still doesn't allow you to store all numbers with arbitrary
precision (in
On 24 December 2010 14:31, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Colin Law wrote in post #970471:
On 24 December 2010 12:16, Gordon Yeong anexi...@gmail.com wrote:
You have not provided the gem list output
Here:
--- Start -
*** LOCAL GEMS ***
actionmailer (2.3.9)
Colin Law wrote in post #970496:
On 24 December 2010 14:25, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
= #BigDecimal:ad2b270,'0.E0',8(20)
ruby-1.9.2-p0 x*BigDecimal('3') == 1
= false
ruby-1.9.2-p0 x*BigDecimal('3') - 1
= #BigDecimal:aa4fdf8,'-0.1E-7',4(20)
Interesting.
On Dec 24, 2:39 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 24, 2:21 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Which still doesn't allow you to store all numbers with arbitrary
precision (in fact putting my mathematical hat on, most numbers can't
be stored like
Frederick Cheung wrote in post #970500:
On Dec 24, 2:39pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 24, 2:21pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Which still doesn't allow you to store all numbers with arbitrary
precision (in fact putting my mathematical hat
Fernando Leandro wrote in post #970481:
Resolved!
the script/plugin install is still not working but i could install
plugins
using git clone git://github.com/rails/auto_complete.git
That's not resolved, then. script/plugin install does more than git
clone. Get it working.
Thanks!
On Dec 24, 2:47 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #970500:
On Dec 24, 2:39pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 24, 2:21pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Which still doesn't allow you to store all
On 24 December 2010 14:29, Marnen Laibow-Koser li...@ruby-forum.com wrote:
ivanpoval wrote in post #970446:
The code sample you provided is very common and many respectful Rails
developers use it.
If we go out of the scope of Rails and start speaking very strictly
about MVC, then probably we
On 24 December 2010 09:12, Saravanan Ravi arslo...@gmail.com wrote:
Hi,
I am new to rubyonrails..i created one dropdownbox(select tag)
I created database with tablename(products).it
contains(id,title,price,gender).I can load all title into the
dropdwonbox.suppose if i select any title means
On 24 December 2010 14:47, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #970500:
On Dec 24, 2:39pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 24, 2:21pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Which still doesn't allow you to store
On 23 December 2010 20:21, Gerardo gerardo.castill...@gmail.com wrote:
Hi,
My application is running over ubuntu 10, ruby 1.9.2, rails 3.0.3 and
passenger 3.0.2 + nginx.
This application has several polymorphic associations and the problem
is that when the associations are called it
Hum.. so thats why my i cant get my auto_complete working...
probably, 'git clone' doesnt install the plugin correctly...
does anyone have any idea of my problem, i installed git (git version
1.7.3.1) and i still always get the Plugin not found error...
does anyone have a
On Dec 22, 11:16 pm, Devin M devin...@gmail.com wrote:
Hello,
I am looking to create a rails app that will model and display
related nodes. I am just beginning to dive into active record and I
was wondering if the following pesudo code would work?
class NodeLink ActiveRecord::Base
Colin Law wrote in post #970510:
On 24 December 2010 14:47, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
Talking slight bollocks. I meant that you can't store with infinite
precision, ie you'll always be liable for some error.
Of course. You know a better way? Should we just store
Colin Law wrote in post #970508:
On 24 December 2010 14:29, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
ivanpoval wrote in post #970446:
The code sample you provided is very common and many respectful Rails
developers use it.
If we go out of the scope of Rails and start speaking very
On 24 December 2010 16:36, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Colin Law wrote in post #970510:
On 24 December 2010 14:47, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
Talking slight bollocks. I meant that you can't store with infinite
precision, ie you'll always be liable for
Colin Law wrote in post #970523:
On 24 December 2010 16:36, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
BigDecimal and for things that are not decimal then use Float and
determine the errors if it is important.
That's basically what I've been saying, except for decimal substitute
No. It *is* the controller's job to trigger render operations. There's
nothing un-MVC about this at all.
Sure it's a controller's job to trigger render operations. But
render :update is a special kind of operation that generates
JavaScript in your action, and sometimes that JavaScript can
Preface: I'm not overly familiar with the inner workings of RoR, so I
apologize for my relatively superficial knowledge upfront
I have a new 64 bit Windows 7 machine.
My dev environment on my old machine which functions fine (sans a
functioning monitor -- thus the new machine), I have the
Further information on my current ruby and rails installation that might be
helpful to a generous Ruby saint:
C:\rails -v
Rails 2.3.2
C:\Users\Rambuildr -v
Buildr 1.3.3
C:\ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
C:\shiftrx\backendbuildr clean deploy
After digging a bit deeper we were able to solve this issue.
The details of the fix are explained here
http://stackoverflow.com/questions/4522288/rails-3-activerecordrelation-random-associations-behavior
The code examples there apply only to rails 3.0.3, but the idea should
be the same for any
On 24 December 2010 17:29, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Colin Law wrote in post #970523:
On 24 December 2010 16:36, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
BigDecimal and for things that are not decimal then use Float and
determine the errors if it is important.
hello Jatin,
Yes, I think I will reinstall all the gems and ruby from scratch.
Thank you and merry xmas, everyone!
On 25 December 2010 01:09, Jatin kumar jatinkumar.n...@gmail.com wrote:
Yes, Colin is right.
There is no need to re-install ubuntu, rather go for rvm.
RVM is an excellent tool
On Dec 24, 5:47 pm, Ram ramduris...@gmail.com wrote:
Further information on my current ruby and rails installation that might be
helpful to a generous Ruby saint:
C:\rails -v
Rails 2.3.2
C:\Users\Rambuildr -v
Buildr 1.3.3
C:\ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
I noticed this...
http://bjhess.com/blog/2008/04/27/five-rails-tips/
But it's outdated a bit. What should I do? I get a DEPRECATION
WARNING: response.layout has been deprecated. Use template.layout
instead. but after googling around I can't find a definitive solution.
It's gotta be simple...
I noticed this...
http://bjhess.com/blog/2008/04/27/five-rails-tips/
But it's outdated a bit. What should I do? I get a DEPRECATION
WARNING: response.layout has been deprecated. Use template.layout
instead. but after googling around I can't find a definitive solution.
I use this with
JeffV wrote in post #910774:
My company expects some tables to exceed 2^31-1 rows and so we are
thinking we need a 64 bit PK. Has anyone gotten this to work?
Thanks, Jeff
I have created a preliminary version of a railtie that changes
activerecord to use UUIDs, however only sqlite3 is tested
Colin Law wrote in post #970536:
The more I think about it the more I think that the ruby
implementation of BigDecimal is flawed. BigDecimal('1') /
BigDecimal('3') should be stored as a rational (ie as two values, 1
and 3 to be divided). Otherwise it seems to me that it is not 'proper'
On 25 December 2010 01:39, Colin Law clan...@googlemail.com wrote:
On 24 December 2010 14:31, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
Colin Law wrote in post #970471:
On 24 December 2010 12:16, Gordon Yeong anexi...@gmail.com wrote:
You have not provided the gem list output
Note that it's going to be fairly complicated to deal with all nodes
that are connected to this one unless you denormalize somewhat and
make *two* NodeLinks for each edge. You may want to consider if you
*really* need a completely undirected graph, or if there's additional
structure
daze wrote in post #970545:
I noticed this...
http://bjhess.com/blog/2008/04/27/five-rails-tips/
But it's outdated a bit. What should I do? I get a DEPRECATION
WARNING: response.layout has been deprecated. Use template.layout
instead. but after googling around I can't find a definitive
Whoops, message got cut off. From what I can guess this
denormalization just basically means you store the relations between
the nodes in a table to save on compute time when performing a lookup
on the Db?
Regards,
Devin Morin
--
You received this message because you are subscribed to the Google
Hi, I'm trying to find some records by datetime.
My experience is this:
Event.all(:date.gte = day, :date.lt = day + 1).each do |event|
...
...
That expression is not working. It's returning an event with day 31 when
day variable is 30.
For example:
event = 2010-12-31
day = 2010-12-30
That
can anybody tell how to install rvm and how to use it..u can also
send some tutorials for rvm , if u dont mind..pls
--
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 rubyonrails-t...@googlegroups.com.
To
On Sat, Dec 25, 2010 at 11:01 AM, venkata reddy
venkatareddy...@gmail.comwrote:
can anybody tell how to install rvm and how to use it..u can also
send some tutorials for rvm , if u dont mind..pls
Seriously? No google? Nothing?
Anyways. Here you go.
http://rvm.beginrescueend.com/
see, i can go for google, but u already using it ..and i think u know
the best resources for it ..anyway thanx and cool..
On Dec 25, 10:34 am, Shiv Narayan Gautam s.n.gau...@gmail.com wrote:
On Sat, Dec 25, 2010 at 11:01 AM, venkata reddy
venkatareddy...@gmail.comwrote:
can anybody tell how
Gordon Yeong wrote in post #970555:
[...]
Problem solved but i somehow think removing
vendor/rails is not so right
Where did you get that idea? Removing vendor/rails is exactly right in
this case -- it's only purpose is to override the system Rails gems. If
you want to freeze 2.3.8 into
75 matches
Mail list logo