[Rails] rake file created not recognized by rake -T

2009-08-31 Thread kevin lee
I am trying to write a custom rake task for my app. But however simple my rake task is, rake -T still does not list it. Here's my file in /lib/tasks called try.rake: desc try rake task :one do puts task one end and therefore when I run rake try.one I get the Don't know how to build task

[Rails] Drop down without a model

2009-08-31 Thread Quee Mm
What is the best way to create a drop down where there is no backend model to get the values from? I am currently using: %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % but this gives me issues when I am trying to edit the info as the

[Rails] Re: Help with Select

2009-08-31 Thread Quee Mm
Thanks guys for the pointers, am working on them to see if something comes up. -- 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: 1 Form 2 Models 2nd Model Requres 1st Model ID *Solved*

2009-08-31 Thread brianp
Thanks everyone for your suggestions. This is what I came up with I was looking for some feedback. It works fine but I figure I might be doing something long winded. This is my first go at an actual railsApp other then book demos. Any feedback would be nice! // new.html.erb h1New word/h1 %=

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread Nik Cool
was [quote] Expect response to be a :success,but was 500 [/quote] Am I missing something ? what is output in test log file? you can try this on console follow the steps 1)go to console (ruby script/console) 2)app.get /catalog see what response you get -- Posted via

[Rails] Re: rake file created not recognized by rake -T

2009-08-31 Thread Dhruva Sagar
For creating rake tasks, you need to first create a namespace.The following is an example of how to do what you want to do : namespace :tasks do desc try rake task :one = :environment do puts task one end end Once you have this in your try.rake file in /lib/tasks when you do a

[Rails] 回复: How to start the ferret server in th e production environment?

2009-08-31 Thread 刘子嘉
I'm using engineyard cloud computing service,as I expected before,I am facing some problems.After running the start command,the ferret_server doesn't seems to start,cause when I stop the ferret_server it saysferret_server doesn't appear to be running.,and in the ferret_server.log,it shows Cannot

[Rails] Re: Rmagick issue...

2009-08-31 Thread Arunkumar B
Please post your log here to see the error type for those scenarios. 2009/8/28 Arun Kumar jakheart...@gmail.com Hi all.. i am working on rails version 1.2.3 (it is must to work on version 1.2.3) ruby 1.8.6. For my project i want to convert text in to images files.. so that i use rmagick..

[Rails] Re: rails 3.0

2009-08-31 Thread Rails Girl
Ricardo Sanchez wrote: I bought the ebook from Manning publishers Rails 3 in action by Yehuda Katz et al. Unfortunately is not ready yet but keep an eye on it as they send releases periodically. - Ricardo How many chapters are ready to read as of now? -- Posted via

[Rails] Thumbnails in Rails ..

2009-08-31 Thread Hemant Bhargava
Hi Champs, Actually, i am uploading a file to my server.. Now suppose if i uploads the file of more than 1Mb.. then its taking a lot of space.. And also taking a lot of time in showing that image .. Just like thumbnails .. :) So now what i want is that is there any way by which i can reduce or

[Rails] Re: Rmagick issue...

2009-08-31 Thread Arunkumar B
try with encoding option like this require RMagick def show_textimg bg = Magick::Image.new(120,20){self.background_color = #9E9E9E} ad_text = Magick::Draw.new *ad_text.encoding = Unicode* ad_text.text(23,14,@ad.ad_text) # here the input text only working good for english but i want to convert

[Rails] Getting this error

2009-08-31 Thread Hunt Hunt
HI friends, After updating ruby 1.8 to ruby1.9.1... on firing script/server to start a server, I am getting the following errror. /home/HUNT/WEBlog/config/boot.rb:86:in `load_rubygems': undefined method `=' for nil:NilClass (NoMethodError) from /home/HUNT/WEBlog/config/boot.rb:52:in

[Rails] Re: ruby 1.8 1.9 problem

2009-08-31 Thread Abhishek Singh
heimdull wrote: you will have to install gem and all your gems using the new ruby 1.9 installation. The gem install is isolated to the ruby install. On Aug 30, 10:12�pm, Abhishek Singh rails-mailing-l...@andreas-s.net which gems i should install. when i type 'gem list' it shows: LOCAL

[Rails] Re: ruby 1.8 1.9 problem

2009-08-31 Thread Abhishek Singh
heimdull wrote: you will have to install gem and all your gems using the new ruby 1.9 installation. The gem install is isolated to the ruby install. On Aug 30, 10:12�pm, Abhishek Singh rails-mailing-l...@andreas-s.net how can i make my gems using ruby 1.9?? -abhishek -- Posted via

[Rails] Re: Has One and Computer Columns

2009-08-31 Thread Colin Law
2009/8/30 Tony tony.cassan...@gmail.com: Thanks for the quick response!  I'm not familiar with the named scopes.  Will these work with preloading the records (I assume by using (:include = [:stats])?  I could end up with a ton of Events on one page and I'd prefer not to have to fetch the

[Rails] Re: Has One and Computer Columns

2009-08-31 Thread Colin Law
2009/8/31 Tony tony.cassan...@gmail.com: Maybe I'm missing something but I don't see any way to get eager loading with the named scopes.  I have many Event models each with many Stat models.  If I have to query each event to get the summary, I still have the n+1 query problem. Don't follow

[Rails] Re: Drop down without a model

2009-08-31 Thread Colin Law
2009/8/31 Quee Mm rails-mailing-l...@andreas-s.net: What is the best way to create a drop down where there is no backend model to get the values from? I am currently using: %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % but

[Rails] How to call method declared in one model

2009-08-31 Thread karthik k
hi guys I need to know how to call one method declared in one model to another controller or another model e.g model1.rb def check1 puts check1 end model2.rb def check2 puts check2 end i need to access check2 method from check1 in model1.rb my line to access check2 method is model2.check2

[Rails] Re: Thumbnails in Rails ..

2009-08-31 Thread Quee Mm
Well if i understand correctly then maybe something like http://clarkware.com/cgi/blosxom/2007/02/24 can help you. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Has One and Computer Columns

2009-08-31 Thread Tony
On Aug 31, 12:39 am, Colin Law clan...@googlemail.com wrote: 2009/8/31 Tony tony.cassan...@gmail.com: Maybe I'm missing something but I don't see any way to get eager loading with the named scopes.  I have many Event models each with many Stat models.  If I have to query each event to

[Rails] Re: Drop down without a model

2009-08-31 Thread Quee Mm
Man i always post my questions wrong, My dropdown will contain date range from 1980 to current year where as the db will only contain the saved years say 2000. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Controller Method .. ?

2009-08-31 Thread Karthik Kantharaj
Hemant Bhargava wrote: Got it .. Hemant Bhargava wrote: How to call a method of a controller into .. 1) another controller .. 2) another model .. .. Do u guys have any idea .. ? .. Hi can you plz share the information as how you got the result karthik.k -- Posted via

[Rails] Re: Controller Method .. ?

2009-08-31 Thread Hemant Bhargava
Created an object using new .. as like object = Controller.new and then call any method of that controller .. :) Karthik Kantharaj wrote: Hemant Bhargava wrote: Got it .. Hi can you plz share the information as how you got the result karthik.k -- Posted via

[Rails] Re: ruby 1.8 1.9 problem

2009-08-31 Thread Conrad Taylor
[snip] can anyone guide me..? First, you'll need to install Ruby 1.9.1 because it was the first production release of Ruby 1.9. Next, you should be able to install gems as follows: For Ruby 1.9.1: sudo gem1.9 install gem-name For Ruby 1.8.7: sudo gem1.8 install gem-name Good luck,

[Rails] creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
hi all, i have a parent by namr consultancy I want to create more than 1 child models for analready existing consultancy which has some extra feilds Plz help me in this regard. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: Has One and Computer Columns

2009-08-31 Thread Colin Law
2009/8/31 Tony tony.cassan...@gmail.com: On Aug 31, 12:39 am, Colin Law clan...@googlemail.com wrote: 2009/8/31 Tony tony.cassan...@gmail.com: Maybe I'm missing something but I don't see any way to get eager loading with the named scopes.  I have many Event models each with many Stat

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Colin Law
2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method declared in one model to another controller or another model e.g model1.rb def check1 puts check1 end model2.rb def check2 puts check2 end i need to access check2 method from check1 in

[Rails] Netsted each loops

2009-08-31 Thread brianp
Hey, So I keep getting undefined method `each' for #Definition: 0x28fa154. The call that gets made returns 1 word object with 2 definition objects. I can verify both definition objects get returned with all there attributes because I can output data like this: % @word.definitions.each do

[Rails] Nested each loops

2009-08-31 Thread brianp
Hey, *sorry for double post* So I keep getting undefined method `each' for #Definition: 0x28fa154. The call that gets made returns 1 word object with 2 definition objects. I can verify both definition objects get returned with all there attributes because I can output data like this: %

[Rails] Re: Drop down without a model

2009-08-31 Thread Colin Law
2009/8/31 Quee Mm rails-mailing-l...@andreas-s.net: Man i always post my questions wrong, My dropdown will contain date range from 1980 to current year where as the db will only contain the saved years say 2000. Assuming that you have form_for @some_object do |f| where @some_object is the

[Rails] Re: rails 3.0

2009-08-31 Thread Conrad Taylor
On Mon, Aug 31, 2009 at 12:05 AM, Rails Girl rails-mailing-l...@andreas-s.net wrote: Ricardo Sanchez wrote: I bought the ebook from Manning publishers Rails 3 in action by Yehuda Katz et al. Unfortunately is not ready yet but keep an eye on it as they send releases periodically. -

[Rails] Re: Drop down without a model

2009-08-31 Thread Quee Mm
Well with this code, %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % it does not seem to work and that makes me wonder what is wrong with this code? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: hi all,         i have a parent by namr consultancy I want to create more than 1 child models for analready existing consultancy which has some extra feilds Do you mean that you have Consultancy has_many :children and you now want to change the

[Rails] logging in using current Windows user information

2009-08-31 Thread Lin Wj
is it possible to fetch the current logged in window user information for authentication / log in purposes ? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Drop down without a model

2009-08-31 Thread Colin Law
2009/8/31 Quee Mm rails-mailing-l...@andreas-s.net: Well with this code, %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % it does not seem to work and that makes me wonder what is wrong with this code? What does the form_for line

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
Hi Colin, Yes, Consultancy has_many :children but what i want to do is creating many childrens in the same form for an already existing consultancy. plz help me in this regard On Aug 31, 1:56 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: hi all,

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: Hi Colin, Yes, Consultancy has_many :children but what i want to do is creating many childrens in the same form for an already existing consultancy. You want to look at Nested Forms I think. The rails guide Getting Started (I presume you have

[Rails] Re: Drop down without a model

2009-08-31 Thread Quee Mm
What does the form_for line look like? % form_for @vehicle do |f| % What does generated html of the select look like? (View, Page Source or similar in your browser) For New http://pastie.org/600224 For Edit http://pastie.org/600226 Have you checked that year_made contains the previous

[Rails] Re: Netsted each loops

2009-08-31 Thread Colin Law
2009/8/31 brianp brian.o.pea...@gmail.com: Hey, So I keep getting undefined method `each' for #Definition: 0x28fa154. The call that gets made returns 1 word object with 2 definition objects. I can verify both definition objects get returned with all there attributes because I can output data

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation for the child fields but the normal new and create method doesn't provide for creating multiple innstance of a model in single form

[Rails] Re: TinyMCE and image upload

2009-08-31 Thread Peter De Berdt
On 31 Aug 2009, at 02:40, Stefano Benatti wrote: Sorry, no I didn't, because I'm not such a big fan of the HTML WYSIWYG editors spit out (or whatever you want to call the junk it spits out). Take out a few hours and experiment, it can't be too hard. I also hate WYSIWYG editors, but i

[Rails] Re: Drop down without a model

2009-08-31 Thread Colin Law
2009/8/31 Quee Mm rails-mailing-l...@andreas-s.net: What does the form_for line look like? % form_for @vehicle do |f| % What does generated html of the select look like? (View, Page Source or similar in your browser) For New http://pastie.org/600224 For Edit http://pastie.org/600226

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread fireflyman
500 On Mon, Aug 31, 2009 at 2:40 PM, Nik Cool rails-mailing-l...@andreas-s.netwrote: was [quote] Expect response to be a :success,but was 500 [/quote] Am I missing something ? what is output in test log file? you can try this on console follow the steps 1)go to console (ruby

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation for the child fields That is what Nested Forms do. See section 9 in the getting

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Priya Buvan
You can call like model2.check2, if the method check2 is a class level method. Write method like below. So that you can this method using model2.check2. def self.check2 puts check2 end -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread Colin Law
2009/8/31 fireflyman yangxiwenh...@gmail.com: 500 On Mon, Aug 31, 2009 at 2:40 PM, Nik Cool rails-mailing-l...@andreas-s.net wrote: was [quote] Expect response to be a :success,but was 500 [/quote] Am I missing something ? what is output in test log file? You did not answer

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Colin Law
2009/8/31 Colin Law clan...@googlemail.com: 2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method declared in one model to another controller or another model e.g model1.rb def check1 puts check1 end model2.rb def check2 puts check2 end i

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 3:33 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 Colin Law clan...@googlemail.com: 2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method declared in one model to another controller or another model e.g

[Rails] Re: Getting this error

2009-08-31 Thread FISHER
maybe some problem in your database, try this: rake db:migrate:redo On Aug 31, 3:10 pm, Hunt Hunt rails-mailing-l...@andreas-s.net wrote: HI friends, After updating ruby 1.8 to ruby1.9.1... on firing script/server to start a server, I am getting the following errror.

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Abhinav Saxena
You can see Railscasts #73, #74, #75 which deals with the same problem. Also searching on any search engine will also help. -- Thanks, Abhinav http://twitter.com/abhinav On Mon, Aug 31, 2009 at 2:46 PM, Kart akramwasim1...@gmail.com wrote: Hi Colin, Yes, Consultancy has_many :children

[Rails] Re: My controller seems to have trouble finding the model

2009-08-31 Thread Frederick Cheung
On Aug 31, 1:09 am, ji yanj...@gmail.com wrote: in my \app\controllers\business_controller.rb: class BusinessController ApplicationController   def search         @businesses = Business.search(params[:businessname], params[:city])   end end in my \app\models\business.rb: class

[Rails] My controller seems to have trouble finding the model

2009-08-31 Thread ji
in my \app\controllers\business_controller.rb: class BusinessController ApplicationController def search @businesses = Business.search(params[:businessname], params[:city]) end end in my \app\models\business.rb: class Business ActiveRecord::Base def search(businessname,

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread fireflyman
Session ID: 6efd9f650c0eb779f4726c3b5b0c609c Parameters: {} ActionController::RoutingError (No route matches /catalog with {:method=:get}): C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/routing.rb:1441:in `recognize_path'

[Rails] Learning

2009-08-31 Thread Prashu
I am working in cleartrip.com on ruy on rails ,so what are things i want to learn to become good developer on Ruby on Rails --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Abhinav Saxena
If you want to call check1 from another model/controller then you can do any of the following: = make check1 class method ## model1.rb def self.check1 end # model2.rb def check2.rb Model1.check1 end = or if you want to keep it as a instance method (or it depends on the state of

[Rails] Re: list of installed gems

2009-08-31 Thread Janos Sebok
In a fresh ruby install you usually have no installed gems. First you might update the gem utility itself to the latest: gem update --system Then install the gems you need with 'gem install gem-name' You can get a list of what gems are available for install with: gem list --remote rails

[Rails] Re: Getting this error

2009-08-31 Thread HUNT HUNT
FISHER wrote: maybe some problem in your database, try this: rake db:migrate:redo On Aug 31, 3:10�pm, Hunt Hunt rails-mailing-l...@andreas-s.net Actually the error is related in starting server (mongreal) I don't know why and how it is coming? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: How to call method declared in one model

2009-08-31 Thread karthik k
On Mon, Aug 31, 2009 at 3:38 PM, karthik k cse.k.kart...@gmail.com wrote: On Mon, Aug 31, 2009 at 3:33 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 Colin Law clan...@googlemail.com: 2009/8/31 karthik k cse.k.kart...@gmail.com: hi guys I need to know how to call one method

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread Colin Law
2009/8/31 fireflyman yangxiwenh...@gmail.com: Session ID: 6efd9f650c0eb779f4726c3b5b0c609c   Parameters: {} ActionController::RoutingError (No route matches /catalog with {:method=:get}): Well there you are then. No one has asked the obvious question, as it is too obvious to require

[Rails] Re: list of installed gems

2009-08-31 Thread Abhinav Saxena
I think your gem program points to gem1.9, and therefore output is empty. If you do gem1.8 list you will get all the gems installed with rubu1.8. Also if ruby -v outputs ruby 1.9, and you still want to use ruby1.8 then perhaps you need to symlink ruby1.8 to ruby. -- अभिनव

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Colin Law
2009/8/31 karthik k cse.k.kart...@gmail.com: On Mon, Aug 31, 2009 at 3:38 PM, karthik k cse.k.kart...@gmail.com wrote: This is anew Question i am writing a method in model In check1.rb  //model def check? self.name=karthik I think that should be self.name == Karthik end when i call

[Rails] Re: error_messages_for help

2009-08-31 Thread Frederick Cheung
On Aug 30, 4:29 am, bgumbiker bogumil.bial...@gmail.com wrote: No success. Any other ideas? thanks You need to write some javascript/rjs to (after form submission) render a partial (which displays errors in whatever way you want) and insert that into the appropriate part of the DOM Fred

[Rails] Re: Javascript with select in partial

2009-08-31 Thread RVince
Hassan, Samiron, THank you for your help, but both of these solutions result in the same problem. THe javascript in the partial is only executed when the partial is loaded the first time. Subsequent render :partial =.. it does not execute. -RVince

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Abhinav Saxena
Hi Karthik, There are a lot of mistakes (bug) in your code, but I think philosophically too you are wrong. Firstly, you have = instead of == in your check? method. And if the word karthik is constant you don't need to pass it. I think this solves your problem. But please do read some detailed

[Rails] Re: Render action inside js template

2009-08-31 Thread Fabio Kreusch
Any thoughts? On Aug 28, 9:30 am, Fabio Kreusch fabi...@gmail.com wrote: Hello all, I'm trying to create the following: There is a index page that lists some items, and 'new item' button. I want the user to be able to click the button, and with ajax the page will be refreshed to show the

[Rails] Re: list of installed gems

2009-08-31 Thread Abhishek Singh
Abhinav Saxena wrote: I think your gem program points to gem1.9, and therefore output is empty. thanx i got that. Also if ruby -v outputs ruby 1.9, and you still want to use ruby1.8 then perhaps you need to symlink ruby1.8 to ruby. how can i create a symlink to ruby1.8? -- Posted

[Rails] Re: Expected response to be a :success,but was 500

2009-08-31 Thread Nik Cool
fireflyman wrote: Session ID: 6efd9f650c0eb779f4726c3b5b0c609c Parameters: {} ActionController::RoutingError (No route matches /catalog with {:method=:get}): Rendering C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (not_found)

[Rails] Re: My controller seems to have trouble finding the model

2009-08-31 Thread Abhinav Saxena
-- अभिनव http://twitter.com/abhinav Make search a class method, ie, define search like this in your model: def self.search(business_name, city) # note self ## do something end On Mon, Aug 31, 2009 at 5:39 AM, ji yanj...@gmail.com wrote: in my \app\controllers\business_controller.rb:

[Rails] Re: Users, Roles and Permissions

2009-08-31 Thread Kristian Mandrup
Why not try Hobo, a rails extension. It includes a pretty decent permission based system using roles... that u can set declaratively for your application. Hobo also include a host of other realy cool features. http://hobocentral.net/ --~--~-~--~~~---~--~~ You

[Rails] Re: Thumbnails in Rails ..

2009-08-31 Thread Hemant Bhargava
Can anybody listen me .. At least suggest me some tutorials .. ? Doing it with Image Science .. But did'nt find too much about it on theirs website also 'http://seattlerb.rubyforge.org/ImageScience.html; .. I am installing it as given in their site .. But its not installed .. I am using

[Rails] Re: list of installed gems

2009-08-31 Thread Abhinav Saxena
First of all, I hope you are linux/mac. If yes, google symlink or ln -s howto. In short, what you need is this: ln -s file_you_want_to_symlink new_path or in your case most probably, it will be sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby -- अभिनव http://twitter.com/abhinav On Mon, Aug 31,

[Rails] Re: How to call method declared in one model

2009-08-31 Thread Colin Law
2009/8/31 karthik k cse.k.kart...@gmail.com: On Mon, Aug 31, 2009 at 4:04 PM, Colin Law clan...@googlemail.com wrote: 2009/8/31 karthik k cse.k.kart...@gmail.com: On Mon, Aug 31, 2009 at 3:38 PM, karthik k cse.k.kart...@gmail.com wrote: This is anew Question i am writing a

[Rails] Multivariable linear regression

2009-08-31 Thread Sk Benm
Hi, I need to do some multivariable linear regression from RoR. I have found one possible solution: 1. Install R on my host (Dreamhost) 2. Use the R for Ruby gem Using a complex statistical package such as R seems a bit complicated however, and I am wondering if you would have a simpler

[Rails] clearing warning in log

2009-08-31 Thread bingo bob
%= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) % and i get this warning... warning: parenthesize argument(s) for future version it works but with the warning. All i'd like to do is just a link_to to show a photo and link to a bigger version. -- Posted via

[Rails] Re: clearing warning in log

2009-08-31 Thread Frederick Cheung
On Aug 31, 12:09 pm, bingo bob rails-mailing-l...@andreas-s.net wrote: %= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) % and i get this warning... warning: parenthesize argument(s) for future version it's saying it wants image_tag(...). You probably don't want the []

[Rails] Re: clearing warning in log

2009-08-31 Thread bingo bob
without the []'s i get this. undefined method `symbolize_keys!' for /resorts/110:String ? -- 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

[Rails] Re: clearing warning in log

2009-08-31 Thread Frederick Cheung
On Aug 31, 12:32 pm, bingo bob rails-mailing-l...@andreas-s.net wrote: without the []'s i get this. undefined method `symbolize_keys!' for /resorts/110:String ? You shouldn't if you parenthesize things the way it wants you to. Fred -- Posted viahttp://www.ruby-forum.com/.

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
Thanks a lot Colin .. On Aug 31, 2:54 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
thanks a lot colin On Aug 31, 2:54 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation

[Rails] Re: clearing warning in log

2009-08-31 Thread Rick
%= link_to(image_tag(photo.data.url(:small)), resort_path(@resort)) % On Aug 31, 7:32 am, bingo bob rails-mailing-l...@andreas-s.net wrote: without the []'s i get this. undefined method `symbolize_keys!' for /resorts/110:String ? -- Posted

[Rails] Re: list of installed gems

2009-08-31 Thread Abhishek Singh
Abhinav Saxena wrote: First of all, I hope you are linux/mac. If yes, google symlink or ln -s howto. In short, what you need is this: ln -s file_you_want_to_symlink new_path or in your case most probably, it will be sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby yes.. i have fix that.. thanx

[Rails] Java like ear / Cache / Class in Ruby???

2009-08-31 Thread Ritvvij
Hi, We are facing a very weird situation. We do not face the problem in our local but face it on the web service where we hosted. Seems like the kinda of issues we have in java where either code stayed in cache and not clearing even after server restart or ear deployment issues, etc. Our model

[Rails] Re: Users, Roles and Permissions

2009-08-31 Thread Arne De Herdt
I'm aware of Hobo etc. The idea behind this whole question line is more theoretical then coding/practical implementation. I'm just trying to figure out from analasys point of view what the best approach would be to implement a dynamic system for roles/permissions on users. -- Arne 2009/8/31

[Rails] Re: clearing warning in log

2009-08-31 Thread bingo bob
You got it, thanks. Posting another cron type rake question in next 5 mins. Would appreciate any thoughts on it! Most annoying (stopping me getting my backups done). -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Simple question about collections

2009-08-31 Thread Aldric Giacomoni
I see. Thank you! -- 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 rubyonrails-talk@googlegroups.com To

[Rails] Running a rake task from cron on a shared webhost (joyent)

2009-08-31 Thread bingo bob
I've created a cron task via my webhost's (a joyent shared accelerator) cron control panel. The control panel has a run now button, when I hit this button the thing works, I get my nice backup file created in /db, all fine. Thing is when I leave the job to run over night, all it creates is an

[Rails] Re: Finding data which, when tweaked, matches.

2009-08-31 Thread Aldric Giacomoni
Matt, your advice is valuable - garbage in, garbage out, right? Sadly, I'm working with a whole bunch of legacy data. It won't grow on either side, but I can't really afford to sanitize the data, either.. Because I need to know exactly what record I'm looking at :/ On the other hand, creating

[Rails] Re: Running a rake task from cron on a shared webhost (joyent)

2009-08-31 Thread Colin Law
2009/8/31 bingo bob rails-mailing-l...@andreas-s.net: I've created a cron task via my webhost's (a joyent shared accelerator) cron control panel. The control panel has a run now button, when I hit this button the thing works, I get my nice backup file created in /db, all fine. Thing is when

[Rails] Migration - wrong SQL statement is created

2009-08-31 Thread Xxx Yyy
Hi, I am doing my first steps with RoR and I have the following problem: I execute my migration file with the following content on a MySQL-database via Rake: code class CreateUsers ActiveRecord::Migration def self.up create_table :users do |t| t.integer :id t.string

[Rails] Re: Migration - wrong SQL statement is created

2009-08-31 Thread Dhruva Sagar
ID is a special field in rails, the migrations generate the ID field automatically, you don't need to declare it within the migration. Thanks Regards, Dhruva Sagar. Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html - Computers are useless. They can only give you

[Rails] Re: Migration - wrong SQL statement is created

2009-08-31 Thread Colin Law
2009/8/31 Xxx Yyy rails-mailing-l...@andreas-s.net: Hi, I am doing my first steps with RoR and I have the following problem: I execute my migration file with the following content on a MySQL-database via Rake: code class CreateUsers ActiveRecord::Migration  def self.up    

[Rails] Re: Running a rake task from cron on a shared webhost (joye

2009-08-31 Thread bingo bob
Maybe, just unsure what. Annoying as it's stopping me doing lots of rake stuff on a schedule. I mean I know there are solutions to run background tasks in the app but I didn't really want the memory overhead for now and this seems like a quick win. If only I could get it working! Any ideas

[Rails] Re: Running a rake task from cron on a shared webhost (joye

2009-08-31 Thread Colin Law
2009/8/31 bingo bob rails-mailing-l...@andreas-s.net: Maybe, just unsure what. Annoying as it's stopping me doing lots of rake stuff on a schedule. I mean I know there are solutions to run background tasks in the app but I didn't really want the memory overhead for now and this seems like

[Rails] Re: Java like ear / Cache / Class in Ruby???

2009-08-31 Thread Ritvvij
Can someone please help us with this error? It's blocking basic functionality of our application On Aug 31, 7:31 am, Ritvvij ritvi...@gmail.com wrote: Hi, We are facing a very weird situation. We do not face the problem in our local but face it on the web service where we hosted. Seems like

[Rails] Controllers / Helpers from shared Directory outside of application directory

2009-08-31 Thread mgpowers
Is there any way to have rails find controllers/helpers in additional directories outside the main applicaton directory ? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Java like ear / Cache / Class in Ruby???

2009-08-31 Thread Ritvvij
The exact exception is undefined local variable or method `validate_country' for #Contact: 0xb7116d9c /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/ attribute_methods.rb:260:in `method_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/

[Rails] Re: Thumbnails in Rails ..

2009-08-31 Thread Ar Chron
Hemant Bhargava wrote: Hi Champs, Want to know each and every possible way .. if possible .. ? Then you have a lot of research to do... I started with http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu and use Rmagick (no experience on Centos, I use Ubuntu). Links to other items

[Rails] Re: Migration - wrong SQL statement is created

2009-08-31 Thread Xxx Yyy
Thank you very much for your quick answers! -- 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] Re: rails 3.0

2009-08-31 Thread EduardoChinchilla
I bought the Rails 3.0 book from Manning but as fas as I know, there are no charters finished yet, at least I have no received it. On Aug 29, 9:25 pm, Ricardo Sanchez rsanchez.jayh...@gmail.com wrote: I bought the ebook from Manning publishers Rails 3 in action by Yehuda Katz et al.

[Rails] Re: Thumbnails in Rails ..

2009-08-31 Thread John T.
Hemant Bhargava wrote: Can anybody listen me .. At least suggest me some tutorials .. ? Doing it with Image Science .. But did'nt find too much about it on theirs website also 'http://seattlerb.rubyforge.org/ImageScience.html; .. I am installing it as given in their site .. But its not

  1   2   >