Re: [Rails] Database design, working but looking for better ways

2012-10-13 Thread Colin Law
On 13 October 2012 06:10, Soichi Ishida li...@ruby-forum.com wrote: Rails 3.1.3 Hi. I have designed the database used for my travel plan application. You should be able to look at the diagram in the link below, hopefully. https://cacoo.com/diagrams/biDSyxh8yzk2kIeg (belongs_to is omitted

[Rails] Re: How to include html tag inside rails label tag

2012-10-13 Thread Quang Dũng
I think it's always better if you give it a class name then styling it in CSS file. Never do inline styling :) -- 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-talk@googlegroups.com. To

[Rails] Re: Database design, working but looking for better ways

2012-10-13 Thread Soichi Ishida
Destination and Departure should not be separate tables, you should just have a table of places, then city is just a member of Place and a FlightName belongs to two Places, as departure and destination. Say, flight A is Tokyo - NewYork and flight B is NewYork - Tokyo Wouldn't that be

Re: [Rails] Re: Database design, working but looking for better ways

2012-10-13 Thread Colin Law
On 13 October 2012 09:29, Soichi Ishida li...@ruby-forum.com wrote: Destination and Departure should not be separate tables, you should just have a table of places, then city is just a member of Place and a FlightName belongs to two Places, as departure and destination. Say, flight A is

[Rails] Re: Re: Database design, working but looking for better ways

2012-10-13 Thread Soichi Ishida
Sorry, I was not clear, What I meant was that there should be a places table, not separate departures and arrivals tables as you show in your diagram. Oh, thanks anyway. I appreciate it! soichi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Re: How to include html tag inside rails label tag

2012-10-13 Thread Norbert Melzer
I second that, depending on the HTML version you are using font and similar are deprecated and shouldn't (mustn't?) be used any more. Am 13.10.2012 10:11 schrieb Quang Dũng nxqd.in...@gmail.com: I think it's always better if you give it a class name then styling it in CSS file. Never do inline

[Rails] Re: Coupure de connexion entre Rails 3.2.7 et Postgres 8.4

2012-10-13 Thread Damjan Rems
I google translated what you have written and as I understand database connection is not a problem. After some time your query returns nil for where should have been same data. You could try newer Postgress. 9.2 is the latest. Search logs for strange errors. This line: time =

Re: [Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-13 Thread Hassan Schroeder
On Fri, Oct 12, 2012 at 7:12 PM, Jordon Bedwell envyge...@gmail.com wrote: What does that last sentence mean? Solr is FOSS. It means what it means. Obviously you think that Solr runs on Unicorn farts and not on servers, that or you think that servers are free. I think that Solr runs on a

[Rails] Temperature display

2012-10-13 Thread Maddy
HI folks, Good evening, Is the possible to display current weather temperature ? -- 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-talk@googlegroups.com. To unsubscribe from this group,

Re: [Rails] Temperature display

2012-10-13 Thread Jordon Bedwell
On Sat, Oct 13, 2012 at 7:22 AM, Maddy ashokku...@shriramits.com wrote: Is the possible to display current weather temperature ? Everything is possible if you know how to do it, first would be to find a weather API, Weather Channel is not so good (I don't even remember if they have an API),

[Rails] AuthenticationFailed in Capistrano

2012-10-13 Thread Mandeep Kaur
Hello friends! I am getting following error while using $ cap deplot:setup * executing `deploy:setup' * executing mkdir -p ~/public_html/simak-in ~/public_html/simak-in/releases ~/public_html/simak-in/shared ~/public_html/simak-in/shared/system ~/public_html/simak-in/shared/log

[Rails] Version issue with First App in Hartl Tutorial

2012-10-13 Thread Tim Escher
Stepping through the Hartl Rails 3 Tutorial from the 2nd edition book hot off the presses. Modified the Gemfile *exactly* as specified in the book, immediately got version issues: Could not find gem 'jquery-rails (= 2.0.0) x86-mingw32', etc., etc. Tried removing the version spec from various

[Rails] [JOBS] Junior Rails developer with experience looking for job

2012-10-13 Thread Mateusz Buryła
Hi there. I work in Rails from about year. In past half year i was working full time as Rails developer. Currently I'm looking for work as Rails developer. It's hard to find work in my living city in Poland. Employers don't event response sometimes even after interview. So, I'm jobless from

Re: [Rails] [JOBS] Junior Rails developer with experience looking for job

2012-10-13 Thread Walter Lee Davis
On Oct 13, 2012, at 12:48 PM, Mateusz Buryła wrote: Hi there. I work in Rails from about year. In past half year i was working full time as Rails developer. Currently I'm looking for work as Rails developer. It's hard to find work in my living city in Poland. Employers don't event

Re: [Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-13 Thread Alexey
On Monday, October 8, 2012 11:02:19 AM UTC+2, Brett McHargue wrote: You could check out http://objectsonrails.com/ and https://github.com/objects-on-rails/display-case - as it says, it brings together the model and context (which could be a controller) brett I do not know if i will be

[Rails] Re: Version issue with First App in Hartl Tutorial

2012-10-13 Thread 7stud --
Have you checked the free online version of the book for the latest updates? -- 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

[Rails] Why does Kernel define class_eval?

2012-10-13 Thread John Merlino
First, I'd like to say it makes sense to define instance_eval in BasicObject. Both object instances (e.g. obj = Object.new or obj = MyClass.new) and class objects (e.g. MyClass = Class.new) are both instances of a class, in the former of the class Object or a client- defined class (which

[Rails] Re: Why does Kernel define class_eval?

2012-10-13 Thread 7stud --
obj = Object.new obj.class_eval {} --output:-- 1.rb:2:in `main': undefined method `class_eval' for #Object:0x01010913f0 (NoMethodError) puts Kernel.instance_methods(false).include? :class_eval --output:-- false $ ruby --version ruby 1.9.3p194 (2012-04-20 revision 35410)