[Rails] Basic database question

2011-06-09 Thread Sta Canovist
Hi there Yes, I know very little of ruby. I must take a crash course? Probabily. Anyway, I try to ask this here. I have a control: customer_controller. From here, I can do something like: @id = 1 @customer = Customer.find(id) Now @customer will contain all the fetched record for customer with

Re: [Rails] Basic database question

2011-06-09 Thread Colin Law
On 9 June 2011 08:06, Sta Canovist stacanov...@gmail.com wrote: Hi there Yes, I know very little of ruby. I must take a crash course? Work through the rails tutorial at railstutorial.org which is free to use online. Even though it may appear that this app is not similar to what you want to

[Rails] Re: Spreadsheet in Rails

2011-06-09 Thread Javix
Just use spreadsheet gem: http://rubygems.org/gems/spreadsheet On 8 juin, 08:20, dev_rails pandu.rails...@gmail.com wrote: Hi, Please help to create a spreadsheet view in rails application. Need to display the cell values from DB with manipulating option. Please specify gems/plugin if

[Rails] Re: Need RoR Developer

2011-06-09 Thread Lorysa Rossnagel
Oops, you're definitely right... We're looking for local or national and will be paying an hourly rate... I don't have the exact rate at the moment but we're highly negotiable - looking for someone at an intermediate level. On Jun 8, 12:15 pm, Peter Bell pe...@pbell.com wrote: At the risk of

[Rails] Re: class table inheritance

2011-06-09 Thread Kevin
I think your issues have to do with your use of the type column and it triggering rails STI magic. STI is assuming all columns are defined on the parent and will never attempt to loan column names from the child tables. I am investigating using native postgres inheritance for a project I'm working

[Rails] MySql2 adapter hangs in Rails3 on Windows XP

2011-06-09 Thread Eric Norberg
Previously we've used Rails2.xx with no problems and we're trying to upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby versions separate. After some initial difficulties with MySql2 gem installation, following a href=http://rorguide.blogspot.com/2011/03/installing-

[Rails] jQuery and Rails issue

2011-06-09 Thread Bob Roberts
I am trying to use the tabs function from jQuery UI in a Rails app. I am using a helper for the navigation and I would like to keep it that way. The code in my helper is: def links_for_navigation html = html = HTML ul lia href=#tabs-1Courses/a/li lia

[Rails] Re: nginx + passenger + mongoid

2011-06-09 Thread zires
Check https://github.com/mongoid/mongoid/issues/648 On Jun 9, 10:48 am, Alex Katebi alex.kat...@gmail.com wrote: When I set the rails_env to production in nginx.conf I get: Error message: db_name must be a string or symbol -- You received this message because you are subscribed to the

Re: [Rails] Re: Need RoR Developer

2011-06-09 Thread Michael Pavling
On 8 June 2011 19:43, Lorysa Rossnagel asy...@gmail.com wrote: We're looking for local or national Which nation? ... Which locality? ... :-/ -- 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] Re: Basic database question

2011-06-09 Thread Sta Canovist
On Jun 9, 9:42 am, Colin Law clan...@googlemail.com wrote: Work through the rails tutorial at railstutorial.org which is free to use online.  Even though it may appear that this app is not similar to what you want to write you will learn a great deal. Thanks I will. -- You received this

[Rails] New added function in vendor modue unrecognized

2011-06-09 Thread Sta Canovist
Hello My controller creates an instance of a module class. The module resides into the /vendor folder. /vendor/plugins/my_client/lib/client.rb This class, or all this app, has been done by someone that apparently know much more about ruby than me. As long as I make changes inside this class,

[Rails] Re: Problem rendering rjs

2011-06-09 Thread johnlucas
It works! Thanks! stupid brackets... :-) On Jun 9, 12:20 am, pipplo joe.kos...@gmail.com wrote: I think your form is not setting remote correctly. If it was submitting correctly you should not see ?remote=true. form tag takes 2 parameters url_for_options and options.  If you don't put the

[Rails] Re: New added function in vendor modue unrecognized

2011-06-09 Thread Sta Canovist
On Jun 9, 12:18 pm, Sta Canovist stacanov...@gmail.com wrote: Hello Oh well, solved. I needed to restart WEBrick. I need to do it each time I make changes in modules! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] MySql2 adapter hangs in Rails3 on Windows XP

2011-06-09 Thread Dhruva Sagar
On Thursday 09 June 2011 03:32 AM, Eric Norberg wrote: Previously we've used Rails2.xx with no problems and we're trying to upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby versions separate. After some initial difficulties with MySql2 gem installation, followinga

[Rails] Rails and Android/IoS

2011-06-09 Thread bertly_the_coder
Hi guys, I am currently developing a web app and a mobile app with pretty much the same guts. As we all know, entering 'rails s' will allow me to pull the site up in my local browser at 'localhost:3000'. Is there anyway I can access this from my mobile phone so that I can see how it looks before

Re: [Rails] Rails and Android/IoS

2011-06-09 Thread Michael Pavling
On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote: Is there anyway I can access this from my mobile phone so that I can see how it looks before sending it to a public host? One way is to download one of the desktop emulators for the mobile OS of your choice. You can also make

Re: [Rails] Rails and Android/IoS

2011-06-09 Thread Walter Davis
Have a look at http://pow.cx from 37 Signals. If you are using your local WiFi network on both your computer and your phone, it should Just Work™. Walter On Jun 9, 2011, at 11:27 AM, bertly_the_coder wrote: Hi guys, I am currently developing a web app and a mobile app with pretty much

Re: [Rails] Rails and Android/IoS

2011-06-09 Thread Colin Law
On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote: Hi guys, I am currently developing a web app and a mobile app with pretty much the same guts. As we all know, entering 'rails s' will allow me to pull the site up in my local browser at 'localhost:3000'. Is there anyway I can

[Rails] Re: jQuery and Rails issue

2011-06-09 Thread bacrossland
On Jun 8, 9:01 pm, Bob Roberts brobe...@c2logix.com wrote: I am trying to use the tabs function from jQuery UI in a Rails app.  I am using a helper for the navigation and I would like to keep it that way.  The code in my helper is:   def links_for_navigation     html =     html  = HTML    

[Rails] Coffee Script Rails 3.1

2011-06-09 Thread Alex Katebi
Are there any examples on how to use coffee script in your rails app. I don't know how people are using coffee script. I know the mechanics of how to write the coffee script. But how do I tie it to my views / application? -- You received this message because you are subscribed to the Google

Re: [Rails] Coffee Script Rails 3.1

2011-06-09 Thread Martin Wawrusch
Here is the very condensed form how I am doing it: Each rendered view contains a class controller_nameofcontroller and controllername_actionname attached to the body element In my scripts I have the following scenarios ( I am using backbone, but this works as well without it): 1. Applies to

[Rails] Fail to call

2011-06-09 Thread Distriker
Hi, I'm trying create a user system for a future project but I have a problem when I want give to my users the Welcome. This is my code: #application_controller class ApplicationController ActionController::Base protect_from_forgery helper_method :current_user private def

[Rails] gems for geenrate graphs

2011-06-09 Thread Adel Mediouni
hi, i have an array of data and i would make a graph to illustrate them. the array is a collection of number of users who have a number of freinds between eg: 1-10 then 10 - 20 . User.last.id - nbr of freinds | nbr users |

Re: [Rails] Fail to call

2011-06-09 Thread Frederick Cheung
On 9 Jun 2011, at 17:26, Distriker ivanhcelrinconelme...@gmail.com wrote: Hi, I'm trying create a user system for a future project but I have a problem when I want give to my users the Welcome. This is my code: #application_controller class ApplicationController ActionController::Base

Re: [Rails] Rails and Android/IoS

2011-06-09 Thread Adrian Caceres
Just connect both your computer and phone to same wifi network and point phones browser to your computers ip address:3000 On Jun 9, 2011 8:42 AM, Colin Law clan...@googlemail.com wrote: On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote: Hi guys, I am currently developing a web app

Re: [Rails] Fail to call

2011-06-09 Thread Iván Hernández
On 06/09/2011 06:13 PM, Frederick Cheung wrote: On 9 Jun 2011, at 17:26, Distrikerivanhcelrinconelme...@gmail.com wrote: Hi, I'm trying create a user system for a future project but I have a problem when I want give to my users the Welcome. This is my code: #application_controller class

Re: [Rails] Re: Rails 3 and application/json

2011-06-09 Thread Joe Koston
Thanks. Just in case anyone is curious adding the Accept headers worked perfect! On Wed, Jun 8, 2011 at 1:32 PM, Peter De Berdt peter.de.be...@pandora.bewrote: On 08 Jun 2011, at 22:22, Joe Koston wrote: I will try to set HTTP_ACCEPT when I get home. I know it's not being set now, but I

Re: [Rails] Fail to call

2011-06-09 Thread Frederick Cheung
On 9 Jun 2011, at 18:31, Iván Hernández ivanhcelrinconelme...@gmail.com wrote: On 06/09/2011 06:13 PM, Frederick Cheung wrote: On 9 Jun 2011, at 17:26, Distriker ivanhcelrinconelme...@gmail.com wrote: Hi, I'm trying create a user system for a future project but I have a problem when I

Re: [Rails] Fail to call

2011-06-09 Thread Iván Hernández
On 06/09/2011 07:04 PM, Frederick Cheung wrote: On 9 Jun 2011, at 18:31, Iván Hernández ivanhcelrinconelme...@gmail.com mailto:ivanhcelrinconelme...@gmail.com wrote: On 06/09/2011 06:13 PM, Frederick Cheung wrote: On 9 Jun 2011, at 17:26, Distrikerivanhcelrinconelme...@gmail.com

Re: [Rails] Fail to call

2011-06-09 Thread Walter Davis
On Jun 9, 2011, at 2:17 PM, Iván Hernández wrote: On 06/09/2011 07:04 PM, Frederick Cheung wrote: On 9 Jun 2011, at 18:31, Iván Hernández ivanhcelrinconelme...@gmail.com wrote: On 06/09/2011 06:13 PM, Frederick Cheung wrote: On 9 Jun 2011, at 17:26, Distriker

[Rails] failing integration test

2011-06-09 Thread dizou
I am following the Ruby on Rails tutorial here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=2.3 I am at this section: http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=2.3#code:layout_links_spec Here is my layout_links_spec.rb: require 'spec_helper'

[Rails] Re: Rails and Android/IoS

2011-06-09 Thread bertly_the_coder
WOW!!! Thank you for all these good suggestions!! I will try them out. Thank you so much guys!! On Jun 9, 12:12 pm, Adrian Caceres acace...@verizon.net wrote: Just connect both your computer and phone to same wifi network and point phones browser to your computers ip address:3000 On Jun 9,

[Rails] [ANN] Rails 3.0.9.rc3 has been released!

2011-06-09 Thread Aaron Patterson
I've pushed an rc3. Yes, we skipped one. I screwed up the rc2, so I yanked it, and we're going straight to rc3. Good thing it's just a release candidate, right? ;-) As usual, please test this against your application and report any regressions to the [rails core mailing

[Rails] [ANN] Rails 3.1.0.rc4 has been released!

2011-06-09 Thread Aaron Patterson
I've pushed a 3.1.0.rc4. Please test it against your application against this release candidate and report any regressions to the [rails core mailing list](http://groups.google.com/group/rubyonrails-core). I would like to hear your feedback, good or bad. Especially if it's good. 3 3 In two

Re: [Rails] gems for geenrate graphs

2011-06-09 Thread Jim Ruther Nill
On Fri, Jun 10, 2011 at 1:05 AM, Adel Mediouni mediouni.a...@gmail.comwrote: hi, i have an array of data and i would make a graph to illustrate them. the array is a collection of number of users who have a number of freinds between eg: 1-10 then 10 - 20 . User.last.id

[Rails] Take a value from tables

2011-06-09 Thread joanne
Hi, I am new in Rails, and now i have a problem to take data from more 4 tables in DB This is my code: //user model belongs_to season belongs_to album has_many albums - def get_pic @pic = Picture.where(:album_id = 'Album.album_id' , user.where(:culture_id =

[Rails] Re: Escaping characters in links

2011-06-09 Thread tashfeen.ekram
In both of the below, the explicit escaped back slash %2F is converted to an actual backslash. %= link_to blah, types_path(Vits%2Fmins) % %= link_to blah, :controller = :browse, :action = :list, :types = Vits%2Fmins % Is this a safety feature of the link_to helper? On Jun 8, 9:16 pm,

[Rails] Re: Escaping characters in links

2011-06-09 Thread tashfeen.ekram
Even the below does the same thing: %= link_to blah, /types/Vits%2Fmins % On Jun 9, 10:42 pm, tashfeen.ekram tashfeen.ek...@gmail.com wrote: In both of the below, the explicit escaped back slash %2F is converted to an actual backslash. %= link_to blah, types_path(Vits%2Fmins) % %= link_to

[Rails] error of undefined method `each' for #Picture:0x927dea0

2011-06-09 Thread joanne
hi all, I have an error undefined method `each' for #Picture:0x927dea0 what is that mean? in my view [code] % @user.each do |p| % %= p.image % % end % [/code] in controller [code] @user=picture.all( :joins = :culture, :conditions =

Re: [Rails] error of undefined method `each' for #Picture:0x927dea0

2011-06-09 Thread Dheeraj Kumar
Simple. You get only one picture object (the first one) because you're using .first method. Since you have only one object, you can't iterate over it using the each loop. Get it? Just use @user.image instead in the view :) On Fri, Jun 10, 2011 at 9:46 AM, joanne joanne0...@gmail.com wrote: hi

Re: [Rails] error of undefined method `each' for #Picture:0x927dea0

2011-06-09 Thread Jim Ruther Nill
On Fri, Jun 10, 2011 at 12:23 PM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote: Simple. You get only one picture object (the first one) because you're using .first method. Since you have only one object, you can't iterate over it using the each loop. Get it? Just use @user.image instead in

Re: [Rails] gems for geenrate graphs

2011-06-09 Thread Michael Pavling
On 9 June 2011 18:05, Adel Mediouni mediouni.a...@gmail.com wrote: hi, i have an array of data and i would make a graph to illustrate them. Open Flash Charts used to be a very good choice. Worth having a look to see if it does what you need. -- You received this message because you are