[Rails] Re: CMS on Rails 2 and easy to integrate with?

2008-09-09 Thread Mohit Sindhwani
Tim Gossett wrote: Radiant http://github.com/radiant/radiant/tree is the way to go. *snip* Hi Tim That's a fantastic list of things you've created. Any chance that I could urge you to add it to the Radiant CMS Summer Reboot Documentation [1] project? It may go in as something like

[Rails] Re: Convert javascript array to ruby array

2008-09-09 Thread David
This is the line that caused the error: %= link_to_remote 'Click me', :url = {:controller = appointments, :action = array}, :with = test%. These are the lines that follow the error: TypeError (exception object expected): /app/controllers/appointments_controller.rb:72:in `raise'

[Rails] Re: MissingSourceFile error

2008-09-09 Thread Frederick Cheung
On Sep 9, 8:56 am, Zhao Yi [EMAIL PROTECTED] wrote: I created a rails application by rails demo command and generated a controller script/generate controller Say. Then I created a file in app/view/say/hello.html.erb. I added a method hello in app/controllers/say_controller.rb. From a

[Rails] Re: Help: fastcgi connection refused

2008-09-09 Thread Frederick Cheung
On Sep 9, 6:50 am, William Lefevre [EMAIL PROTECTED] wrote: Greetings,      I just started a new Rails app and it's dead in the water. It appears to be something to do with my lighttpd server or fastcgi. The error is '500 - internal server error'. Well the fact that I doesn't work with

[Rails] Re: Paginator prob

2008-09-09 Thread Thorsten Müller
I don't see, why you want to use this Paginator thing (whatever exactly it is) Ferret doesn't need it for pagination, you can give it the per_page page options and that's all to it. btw: Sphinx would most likely do a better job. Ferret is nice, until you try to make it run in production.

[Rails] Re: Paginator prob

2008-09-09 Thread Frederick Cheung
On Sep 9, 5:18 am, tashfeen.ekram [EMAIL PROTECTED] wrote: i am trying to implement the pagination solution for ferret provided at the following link:http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#what i am getting the following error: uninitialized constant

[Rails] Re: MissingSourceFile error

2008-09-09 Thread Zhao Yi
Frederick Cheung wrote: On Sep 9, 8:56�am, Zhao Yi [EMAIL PROTECTED] wrote: What's wrong with my application? Did I forget anything? Sounds like you don't have the sqlite3-ruby gem (and you'll need the sqlite3 library as well) Fred Where can I get it? How can I install it? -- Posted via

[Rails] Re: Reload Everything (lib/plugins/vendor/the lot)

2008-09-09 Thread Ingmar
Alex, It might be a name-convention issue... If your module/class is called 'ActiveExt' then the corresponding .rb file should be named active_ext.rb (without the underline, it corresponds to the class 'Activeext' without the capital E) Try to either rename your model or your files accordingly.

[Rails] Re: Convert javascript array to ruby array

2008-09-09 Thread David
Yea, you were right, its been a long daybut i have finally figured it out. Thanks for your help. For anyone who is trying to convert a javascript array to a ruby array and pass the array to the controller you can follow this advice: create a javascript function that returns the array with

[Rails] form_for submit to a custom action

2008-09-09 Thread Paul Li
hi forum, I am new to rails, and i am just getting my hang of things. Problem, how do you pass content captured in a form to a custom method? I have the following form: % form_for :message, @message, :url = { :action = 'reply'} do |f| % table cellpadding=4 cellspacing=5 tr

[Rails] generate serialized attribute in fixture

2008-09-09 Thread Erwin
Is there anyway to generate a serialized attribute like this one inside the fixture : knowledge: --- \n- 1\n- 3\n- 5\n- 7\n I tried knowledge: %= [1, 3, 5, 7].to_yaml % doesn't not work... so I do it using irb, then copy/paste.. thanks erwin

[Rails] Re: Is it possible to determine a page request from a refresh

2008-09-09 Thread Mukund
Can you muck around with Javascript instead? http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html?page=4 On Sep 9, 10:22 am, PeteSalty [EMAIL PROTECTED] wrote: Maybe, although we try not to put anything into session if we can help it. Thanks for the idea

[Rails] Re: generate serialized attribute in fixture

2008-09-09 Thread Frederick Cheung
On 9 Sep 2008, at 11:10, Erwin wrote: Is there anyway to generate a serialized attribute like this one inside the fixture : knowledge: --- \n- 1\n- 3\n- 5\n- 7\n I tried knowledge: %= [1, 3, 5, 7].to_yaml % The difference between these two is that the second is actually sticking

[Rails] Routing problem in Rails 2.x

2008-09-09 Thread CountBrass
Hi I get this error: Showing workouts/show.html.erb where line #14 raised: undefined method `activities_path' for #ActionView::Base:0x720828 Extracted source (around line #14): 11: 12: h1Add an exercise to this Workout/h1 13: div id=submitArea class=formEnd 14: %

[Rails] Re: Routing problem in Rails 2.x

2008-09-09 Thread Edward Kenworthy
'fraid that doesnt work either. NoMethodError in Workouts#show Showing workouts/show.html.erb where line #15 raised: undefined method `nil_class_workout_path' for #ActionView::Base: 0x1637cf8 Extracted source (around line #15): 12: h1Add an activity to this Workout/h1 13: div

[Rails] Re: (Dir.glob([EMAIL PROTECTED]/**/*/**) | Dir.glob([EMAIL PROTECTED]/**)) != Dir.glob([EMAIL PROTECTED]/**) ?

2008-09-09 Thread Frederick Cheung
On 9 Sep 2008, at 14:27, Rodrigo Rosenfeld Rosas wrote: I tried to ask this question once in Ruby-talk and inside another post in this list. No one answered me and I doubt anyone is able to answer it. So, I tried changing the subject in a weird, although correct question, to see if

[Rails] Re: How? Why? Production Woes

2008-09-09 Thread Jeremy
Actually, yes I tried running the migration from the beginning with a clean db (and backwards for good measure) and it works just fine and dandy in development. * scratches head * On Sep 9, 10:08 am, Rodrigo Rosenfeld Rosas [EMAIL PROTECTED] wrote: Did you try to: rake db:migrate VERSION=0

[Rails] logger.info request.headers in production does nothing?

2008-09-09 Thread comopasta Gr
Hi, logger.info request.headers is giving me the headers of the request in development mode. However I can't get the same on production mode. Any hints? Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: How? Why? Production Woes

2008-09-09 Thread Jeremy
Alright, nevermind. Apparently for whatever reason the restful_authentication plugin directory didn't make it into my git repo. :-( On Sep 9, 10:10 am, Jeremy [EMAIL PROTECTED] wrote: Actually, yes I tried running the migration from the beginning with a clean db (and backwards for good

[Rails] Re: How? Why? Production Woes

2008-09-09 Thread Rodrigo Rosenfeld Rosas
Anyway, you should check this one: /apps/listjutsu/releases/20080909133505/app/models/user.rb:4 Rodrigo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Paginator prob

2008-09-09 Thread Russell Norris
veering off topic... what does Ferret is nice, until you try to make it run in production. mean exactly? i've seen mention that ferret has problems in production but i don't understand what other use you'd want it for. just to develop an idea but never put into production? agreed on sphinx being

[Rails] Re: Switching to Rails 2.1

2008-09-09 Thread Milan Novota
Thank you both! -- Milan Novota 2008/8/22 Jeffrey L. Taylor [EMAIL PROTECTED] Quoting nightcoder [EMAIL PROTECTED]: Hi everyone. Here is my problem: I've been working on a RoR project for a while (its quite big project), but have to stop the work on it for some half a year. Now

[Rails] Re: How do you manage Access Control?

2008-09-09 Thread elFonso
Check out restful authentication plugin, and the role authentication plugin that works as an addition On Sep 9, 8:50 am, max [EMAIL PROTECTED] wrote: I'm working on a rather large app, where we have more than 7 user roles, each of which will have permission to access different parts of the

[Rails] Re: Help: fastcgi connection refused

2008-09-09 Thread William Lefevre
Fred THANK YOU. I never would have found that on my own and it's good to learn something more about how Rails works. Thanks, William -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: logger.info request.headers in production does nothing?

2008-09-09 Thread comopasta Gr
Thanks Thorsten or use logger.error instead of logger.info I did try that one also with the same result... Regards -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: pagination and sorting

2008-09-09 Thread Matt Harrison
Danimal wrote: Matt, I find that the best is to just reset to the beginning with any change of sort or pagination. It's too confusing not to. For example, if you are showing 5 records per page in a 50 record set and you are on page 4, then you suddenly switch to 25 records per page, what

[Rails] a simple way to generate a comma separated list of codes?

2008-09-09 Thread John Small
I have a model, Account, with many Courses. I want to display the course codes for those courses as comma delimited text in an attribute of the account. So I would have Account ActiveRecord::Base has_many :courses def get_course_codes_as_text courses.each {|course| something something but I

[Rails] Re: a simple way to generate a comma separated list of codes?

2008-09-09 Thread Shiv N Gautam
On Tue, Sep 9, 2008 at 10:11 PM, John Small [EMAIL PROTECTED] wrote: I have a model, Account, with many Courses. I want to display the course codes for those courses as comma delimited text in an attribute of the account. So I would have Account ActiveRecord::Base has_many :courses def

[Rails] Re: a simple way to generate a comma separated list of codes?

2008-09-09 Thread Vince Hodges
On Tue, Sep 9, 2008 at 9:46 AM, Shiv N Gautam [EMAIL PROTECTED] wrote: On Tue, Sep 9, 2008 at 10:11 PM, John Small [EMAIL PROTECTED] wrote: I have a model, Account, with many Courses. I want to display the course codes for those courses as comma delimited text in an attribute of the

[Rails] Re: a simple way to generate a comma separated list of codes

2008-09-09 Thread William Yeung
See if I qualify: courses.collect {|c| c.code}.join(,) John Small wrote: I have a model, Account, with many Courses. I want to display the course codes for those courses as comma delimited text in an attribute of the account. So I would have Account ActiveRecord::Base has_many :courses

[Rails] Re: How do you manage Access Control?

2008-09-09 Thread max
I am actually using the restful_acl, and restul_authentication plugins, but they are really falling short On Sep 9, 11:28 am, elFonso [EMAIL PROTECTED] wrote: Check out restful authentication plugin, and the role authentication plugin that works as an addition On Sep 9, 8:50 am, max [EMAIL

[Rails] Accessing eagerly loaded children

2008-09-09 Thread Michael Lavrisha
Hello! In my controller, I have a model that preloads (or eager loads?) its respective child members. class Parent ApplicationController def show @parent = Parent.find(:all, :include = :children) end end In my view, I need to display a specific child by searching for it in

[Rails] Re: Accessing eagerly loaded children

2008-09-09 Thread Frederick Cheung
On 9 Sep 2008, at 18:19, Michael Lavrisha wrote: Hello! In my controller, I have a model that preloads (or eager loads?) its respective child members. class Parent ApplicationController def show @parent = Parent.find(:all, :include = :children) end end In my view, I need to

[Rails] objects and attributes

2008-09-09 Thread Shandy Nantz
I have this method that it's soul purpose is to toggle a field and then redisplay a chech_box helper and a image signifying that the field has been updated. My issue, however, is that this method is to toggle several different field all via one method simply because the code to do so was all the

[Rails] if on certain page display, else display

2008-09-09 Thread Dan Paul
Hello, first off sorry i am new and a dumbass but I need help with this. In my view/application file i have some css and I want a certain bit of css displayed if a user is in one controller but another type of css to be display if they are in another controller. I made up the following which

[Rails] Re: if on certain page display, else display

2008-09-09 Thread Shandy Nantz
Dan Paul wrote: Hello, first off sorry i am new and a dumbass but I need help with this. In my view/application file i have some css and I want a certain bit of css displayed if a user is in one controller but another type of css to be display if they are in another controller. I made up

[Rails] Polymorphic problems with an abstract class

2008-09-09 Thread Subbu
This could have been solved earlier. But I couldn't find a solution. Lets say I have an abstract base model called 'Question' and sub- models like Mcq, TrueFalse and FillInTheBlank. Mcq and TrueFalse models have a has_many relation with another model named 'Choice' whereas FillInTheBlank model

[Rails] Re: if on certain page display, else display

2008-09-09 Thread Dan Paul
found the answer if anyone else is looking for it % if controller.controller_name == pages % div id='home'/div % else % div id='other'/div % end % --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: How do you manage Access Control?

2008-09-09 Thread Michael Lavrisha
max wrote: I am actually using the restful_acl, and restul_authentication plugins, but they are really falling short Check out this tutorial on restful_authentication, maybe it could give you some ideas on access control. http://railsforum.com/viewtopic.php?id=14216 mike -- Posted via

[Rails] Re: pagination and sorting

2008-09-09 Thread Matt Harrison
Danimal wrote: Matt, No, you are making sense. I think you and I got mixed up backwards. If you are KEEPING sort order but CHANGING pages, then don't change the sort. If you are KEEPING pages but CHANGING sort order, then I would argue, force a page change to page 1. So, in your

[Rails] Re: Polymorphic problems with an abstract class

2008-09-09 Thread Subbu
Looks like I have found one solution. I had 2 definitions for the classes Mcq and TrueFalse, one in separate files named mcq.rb and true_false.rb and another definition in the file question.rb (the abstract class itself). I had to have these definitions in 2 files because otherwise I couldn't

[Rails] Re: a simple way to generate a comma separated list of codes

2008-09-09 Thread Bosco So
Newbie question: how do I prevent your code snippet from becoming an n- fetch? Eager loading will work, but if all I want are the codes, then eager loading of the associated courses will over-retrieve data. Yes, yes, I know - don't over optimize. But if I know how to optimize, at least I can

[Rails] Re: objects and attributes

2008-09-09 Thread Fabio Eidi
try to do @user[attribute_name] = value if you pass a string or a symbol =] -- 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: Switching to Rails 2.1

2008-09-09 Thread Phlip
Milan Novota wrote: Here is my problem: I've been working on a RoR project for a while (its quite big project), but have to stop the work on it for some half a year. Now I'm back on it and I'd like to switch to the newest version of Rails (my project is using Rails 1.2.6). Any tips how can

[Rails] Re: logger.info request.headers in production does nothing?

2008-09-09 Thread comopasta Gr
Hi, I need to inspect the request header I'm getting from a client in production mode. Any hints anyone? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] HowTo search a string for content?

2008-09-09 Thread David Liwoch
Obviously not a genius with Ruby. I simply want to check if the string from an form input is a phone number, or an email. I started testing wether the string.class was Bignum or Fixnum. If it was I presumed it was a phonenumber. Although this works in script/ console, my application dosn't

[Rails] proxy pass based on html header attribute

2008-09-09 Thread Ilan Berci
Although this isn't directly rails related, I am hopefull that I can get some advice here.. :) I can't seem to find a way to configure nginx with the standard modules included to proxy_pass based off a custom html header attribute. The only possibility I came up with was to write a custom

[Rails] Re: HowTo search a string for content?

2008-09-09 Thread Ilan Berci
David, I believe that regular expressions is what you may be looking for.. s = (0045) 444- = (0045) 444- codes = s.match /(\(\d+\))?\s*(\d{3})(\s*-\s*)?(\d{4})/ = #MatchData (0045) 444- 1:(0045) 2:444 3:- 4: codes[0] = (0045) 444- codes[1] = (0045) codes[2] = 444

[Rails] how do i use a newly installed gem?

2008-09-09 Thread dino d.
Hi - I wanted to try out the Blackbook gem: http://contentfree.rubyforge.org/blackbook/ So I did gem install blackbook and I kept getting failures installing, and finally I used the -- ignore-dependencies flag in gem install, and I got it installed. Now I try to do something very simple like

[Rails] Re: HowTo search a string for content?

2008-09-09 Thread Frederick Cheung
On 9 Sep 2008, at 21:24, David Liwoch [EMAIL PROTECTED] wrote: Obviously not a genius with Ruby. I simply want to check if the string from an form input is a phone number, or an email. Read up on regular expressions Fred I started testing wether the string.class was Bignum or Fixnum.

[Rails] Re: how do i use a newly installed gem?

2008-09-09 Thread John Yerhot
Did you require the gem? On Sep 9, 3:37 pm, dino d. [EMAIL PROTECTED] wrote: Hi - I wanted to try out the Blackbook gem: http://contentfree.rubyforge.org/blackbook/ So I did gem install blackbook and I kept getting failures installing, and finally I used the -- ignore-dependencies flag

[Rails] Re: Build objects from csv, using column headers as attributes

2008-09-09 Thread Ilan Berci
Max, first of all, this is not a csv file.. but if you are willing to make it a real csv file then you can do something like the following: #!/usr/bin/env ruby schools = [] ARGV.each do |f_name| File.open(f_name) do |f| headers = f.gets.chomp.split(/\s*,\s+/) while(line = f.gets) do

[Rails] Re: how do i use a newly installed gem?

2008-09-09 Thread dino d.
I didn't originally, but now I did. I added: require 'blackbook' and now, I get no such file to load -- blackbook I've checked and blackbook.rb is installed here: C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib i don't have any idea how ruby looks for gems or where. this error tells me

[Rails] How to model a polymorphic relationship?

2008-09-09 Thread Reiner Pittinger
I have read many articles about polymorphic associations in Rails and also about plugins for this purpose (mainly the has_many_polymorphs plugin). Unfortunately, I am still unsure how to solve my problem: Let's say you have these models you want to set in relation to each other: Person,

[Rails] Re: How to model a polymorphic relationship?

2008-09-09 Thread Ilan Berci
Reiner, I don't believe you have the need for polymorphic associations in the above example as you have a seperate association type already specced out for each relation class Person ActiveRecord::Base has_many :documents has_many :realties end class Document ActiveRecord::Base belongs_to

[Rails] Re: how do i use a newly installed gem?

2008-09-09 Thread Robert Walker
Is this is Rails 2.1? If so did you look at the comments pertaining to gems in config/environment.rb? Example: config.gem hpricot, :version = '0.6', :source = http://code.whytheluckystiff.net; dino d. wrote: I didn't originally, but now I did. I added: require 'blackbook' and now, I

[Rails] Re: how do i use a newly installed gem?

2008-09-09 Thread Robert Walker
If so did you look at the comments pertaining to gems in config/environment.rb? Or optionally you may consider vendoring the gem. See: http://errtheblog.com/posts/50-vendor-everything Robert Walker wrote: -- Posted via http://www.ruby-forum.com/.

[Rails] Re: how do i use a newly installed gem?

2008-09-09 Thread dino d.
no, i'm running rails 2.0.2 thanks for your help so far. On Sep 9, 5:28 pm, Robert Walker [EMAIL PROTECTED] wrote: Is this is Rails 2.1? If so did you look at the comments pertaining to gems in config/environment.rb? Example: config.gem hpricot, :version = '0.6', :source =

[Rails] Re: Convert javascript array to ruby array

2008-09-09 Thread David
So it turns out the call myArray.toJSON() only converts the javascript array myArray to a string. I have implemented a work around parse to convert the string into an array, but i was wondering if anyone knows of a JSON method to convert directly to a ruby array. Maybe this would be faster? On

[Rails] Re: How to model a polymorphic relationship?

2008-09-09 Thread Reiner Pittinger
Hi Ilan, thank you for your answer: Ilan Berci wrote: class Person ActiveRecord::Base has_many :documents has_many :realties end class Document ActiveRecord::Base belongs_to :owner, class_name = Person belongs_to :realty end class Realty ActiveRecord::Base belongs_to :owner,

[Rails] Setting view path in a plugin to include plugin views

2008-09-09 Thread Wes Gamble
I have a plugin that I'm trying to use but it keeps looking in another plugin's path for the view files. I get this error: ActionView::MissingTemplate (Missing template blah.rhtml in view path other_plugin_view_dir:my_app/app/views) I don't know much about setting up view paths in plugins, but

[Rails] Re: objects and attributes

2008-09-09 Thread Shandy Nantz
Fabio Eidi wrote: try to do @user[attribute_name] = value if you pass a string or a symbol =] That did the trick. Thx, -S -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: [ANN] Kete 1.1, an open source Rails application for online communities, is here

2008-09-09 Thread Mohit Sindhwani
Walter McGinnis wrote: Hi Mohit, You can give Kete a try simply by asking questions you might have on the Kete community site run on the software at http://kete.net.nz/ or feel free to contact me offlist and I can point you at a demo site where you can play around a bit. Glad to hear

[Rails] Clickheat on RoR

2008-09-09 Thread Abed Escobal
Is it possible for a PHP based application, specifically Clickheat, be ported to a currently running web application built from RoR? I have managed to extract the directory of clickheat into the public directory of our RoR application but when I access clickheat using

[Rails] Re: CMS on Rails 2 and easy to integrate with?

2008-09-09 Thread Mohit Sindhwani
Tim Gossett wrote: done. http://wiki.radiantcms.org/Does_Radiant_have_what_I_need Excellent! Thanks a lot :) Cheers, Mohit. 9/10/2008 | 9:13 AM. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Character not being displayed correctly using Rails

2008-09-09 Thread Nick
Thanks for the tip...but sadly it doesn't work. I still see the boxes. It might just be an isolated problem on my computer. The HTML is now: font color=gold#9733; #9733; #9733; #9733; #9733; /font On Sep 8, 9:16 pm, Phlip [EMAIL PROTECTED] wrote:

[Rails] Re: Clickheat on RoR

2008-09-09 Thread Hassan Schroeder
On Tue, Sep 9, 2008 at 6:11 PM, Abed Escobal [EMAIL PROTECTED] wrote: Is it possible for a PHP based application, specifically Clickheat, be ported to a currently running web application built from RoR? I am no developer of RoR. My boss just told me to port it. Port -- You keep using that

[Rails] Re: Is it possible to determine a page request from a refresh

2008-09-09 Thread Jeremy Olliver
If you don't want to store anything in the session, how about checking the referrer url in your controller action? def show @item = Item.find(params[:id]) dont_log_page_view = request.env[HTTP_REFERER] =~ /\/items\/ [EMAIL PROTECTED]/ ... end That will check to see if the request for

[Rails] Get Rid of Date in Migration Filename

2008-09-09 Thread Trogdor
I was wondering how to get Rails 2.1 migrates to go from generating 20080910014108_create_table.rb-esque migrations to the old 22_create_table.rb style ones. I am sure that there is some sort of advantage in having timestamps in the file name, I just haven't figured it out yet. Thanks in

[Rails] Re: Clickheat on RoR

2008-09-09 Thread Abed Escobal
Hassan Schroeder wrote: Port -- You keep using that word. I do not think it means what you think it means. Sorry. Maybe integrate will do? Do you have any suggestions for a person whose english is not his native tongue? Can you rewrite an existing PHP application in Ruby to run on the Rails

[Rails] Re: Get Rid of Date in Migration Filename

2008-09-09 Thread Andrew Bloom
the advantage to the datetime based filenames over the simple integers is that it allows you to work in branches, make migrations and merge it all back together later without fear of conflicting migrations. why would you want to go back? On Sep 9, 8:45 pm, Trogdor [EMAIL PROTECTED] wrote: I was

[Rails] Re: Get Rid of Date in Migration Filename

2008-09-09 Thread Trogdor
Ahh, that does make sense. I am the only dev working on this project, so I do a lot of rake db:migrate VERSION=22 stuff to roll back migrations, trying to do VERSION=20080214017515 is just a hassle. Being a loner I forget sometimes that people write software with other people... On Sep 9,

[Rails] Re: Get Rid of Date in Migration Filename

2008-09-09 Thread Ryan Bigg
If you're wanting to rollback, just use rake db:rollback? --~--~-~--~~~---~--~~ 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: Clickheat on RoR

2008-09-09 Thread Hassan Schroeder
On Tue, Sep 9, 2008 at 7:47 PM, Abed Escobal [EMAIL PROTECTED] wrote: Sorry. Maybe integrate will do? Do you have any suggestions for a person whose english is not his native tongue? I perhaps wrongfully assumed that basic CS terms like port -- and FWIW I don't have a CS degree -- would be

[Rails] Re: Paginator prob

2008-09-09 Thread tashfeen.ekram
h so, do more people use sphinx for full text search? i was just more comfortable using a lucence ruby port since lucene is so well known On Sep 9, 9:48 am, Thorsten Müller [EMAIL PROTECTED] wrote: On Sep 9, 4:23 pm, Russell Norris [EMAIL PROTECTED] wrote: veering off topic... what

[Rails] Re: Paginator prob

2008-09-09 Thread tashfeen.ekram
here is useful discussion on the issue: https://groups.google.com/group/rubyonrails-deployment/browse_thread/thread/980fe7cb20cb97dd/bc798b52f439020c On Sep 9, 9:12 pm, tashfeen.ekram [EMAIL PROTECTED] wrote: h so, do more people use sphinx for full text search? i was just more

[Rails] Re: Convert javascript array to ruby array

2008-09-09 Thread Joshua Abbott
I may be wrong, but since JS is a client side language and Ruby is a server side language, won't all of the ruby code have been parsed before the JS array is ever even created? -- Josh David wrote: So it turns out the call myArray.toJSON() only converts the javascript array myArray to a

[Rails] Re: Errno::E232 (The pipe is being closed.)

2008-09-09 Thread Russel Cuizon
Chris Metcalfe wrote: I too am getting the same error in apache with fastcgi. Any ideas? I'm having the same error too. Have any luck on solving this? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: How do you manage Access Control?

2008-09-09 Thread elFonso
tried this one? http://agilewebdevelopment.com/plugins/show/807 On Sep 9, 9:56 am, max [EMAIL PROTECTED] wrote: I am actually using the restful_acl, and restul_authentication plugins, but they are really falling short On Sep 9, 11:28 am, elFonso [EMAIL PROTECTED] wrote: Check out restful

[Rails] Re: Polymorphic problems with an abstract class

2008-09-09 Thread Subbu
Ilan, Mcq and TrueFalse descend from question and not choice. The correct structure is below. app/models/choice.rb class Question ActiveRecord::Base end app/models/question.rb class Question ActiveRecord::Base self.abstract_class = true end class Mcq Question;end class TrueFalse

[Rails] MethodNotAllowed error when reloading routes on Rails 2.1

2008-09-09 Thread Francesca Resta
Hello, I'm using Rails 2.1 on apache and in some functions of my application I need to reload routes on the fly. Now and then, it raises a MethodNotAllowed exception (Only get, post, put, and delete requests are allowed), and after this my application will not work at all until I restart apache.

[Rails] custom field name for error messages?

2008-09-09 Thread Tim
I know this may be nit-picky, but I'd like to show a more friendly field name when displaying error messages. For example, I've got a form field labeled E-Mail Address but the error message looks like this: * Email address must be valid A better example is that I've got a field on the User

[california.jobs.com] really urgenet requirement for Peoplesoft HRMS Functional consultant

2008-09-09 Thread vinod malik
Hi Please send me your updated resume for the follwoing position. JobTitle : Peoplesoft HR Functional Business Systems Analysts Location : Chicago, IL Duration : 6 Month(s) Skills : Required Skill Set includes the following: · PeopleSoft Query · SQRs · Security