[Rails] Re: Pure, OpenID-only (password not a choice) Authentication

2010-01-10 Thread Robert Walker
Rick Denatale wrote: On Sat, Jan 9, 2010 at 5:32 AM, Audrey A Lee audrey.lee.is...@gmail.com wrote:  - Vanilla password based authentication and forget if they were using a password or OpenID. So my question is, do you know of any projects or Rails starter kits which implement OpenID-only

Re: [Rails] OAI-PMH problem with more than one parameter.

2010-01-10 Thread Walter McGinnis
Hi, As you know the OAI-PMH standard is pretty specific about what are acceptable parameters to requests and test is definitely not one. I have a pretty customized version of the OAI lib running on the Kete project and though it answers properly formed requests correctly it gives a 500 error

Re: [Rails] OAI-PMH problem with more than one parameter.

2010-01-10 Thread Walter McGinnis
On Sun, Jan 10, 2010 at 9:35 PM, Walter McGinnis walter.mcgin...@gmail.com wrote: You seem to indicate that you have tried other second parameters, but are they definitely valid. Sheesh, wish I had used valid grammar. Oops. -- You received this message because you are subscribed to the Google

[Rails] [SOLVED] Re: imagemagic errors

2010-01-10 Thread brianp
Thanks you everyone for being so patient and providing suggestions that after time lead me to the answer. It seems all my ports/libs in macports were well... ferbunked. I tried to run a port upgrade outdated and it had so many errors. I slowly went through them activating, deactivating,

[Rails] Re: imagemagic errors

2010-01-10 Thread brianp
By blew up my server: I installed Snow Leopard the day it was released. I run the built in Mac OS Apache server with many add ons. The main one being the Marc Liyanage entropy package. At the time there wasn't support for snow leopard. So my server pretty much grinded to a halt for most

[Rails] [PROJECT] Youtube like web application

2010-01-10 Thread h.hozayen
Hello, We are an entertainment company in the Middle-East. We would like to start a web application based on Ruby on Rails technology. The web application should enforce web 2.0 concepts and looks somehow like Youtube.com in terms of recommendation, tagging and Taxonomy. We need the web

Re: [Rails] Re: Re: has_one belongs_to confusion

2010-01-10 Thread Colin Law
2010/1/10 Sijo k g li...@ruby-forum.com: %=h @project.study_type.name if @project.study_type % and see   And from 2.3 it can be done like @project.try(:study_type).try(:name) I *think* the direct equivalent is @project.study_type.try(:name) I am not sure whether I like this or not. Colin

Re: [Rails] [PROJECT] Youtube like web application

2010-01-10 Thread Colin Law
2010/1/10 h.hozayen hoza...@gmail.com: Hello, We are an entertainment company in the Middle-East. We would like to start a web application based on Ruby on Rails technology. The web application should enforce web 2.0 concepts and looks somehow like Youtube.com in terms of recommendation,

Re: [Rails] [PROJECT] Youtube like web application

2010-01-10 Thread Conrad Taylor
On Sat, Jan 9, 2010 at 11:56 PM, h.hozayen hoza...@gmail.com wrote: Hello, We are an entertainment company in the Middle-East. We would like to start a web application based on Ruby on Rails technology. The web application should enforce web 2.0 concepts and looks somehow like Youtube.com

[Rails] Re: ajax tabs in lightbox

2010-01-10 Thread jeb
Figured it out at last. On 10 Jan, 01:10, Marnen Laibow-Koser li...@ruby-forum.com wrote: jeb wrote: I try to put some tabs in a ligtbox (lightview) to do a user friendly form, kind of. With lightbox i mean a modal window. The tabs (livipipe) works well withe ajax in the normal window,

[Rails] confusing action and id in link_to_remote

2010-01-10 Thread jeb
I have a problem I have seen on several posts here but nowhere have I found a solution. If I call the action edit in a link_to_remote call, id and action are confused. If I instead call edit2 as action it works fine. I find that strange! The call: %= link_to_remote index_tablerow.full_name, :url

[Rails] Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Fritz Trapper
After I installed prawnto in my project, Mongrel fails to start with these backtrace lines: /home/inet/Aptana RadRails Workspace/wvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:275:in `load_missing_constant': uninitialized constant ActiveSupport::Memoizable (NameError) from

[Rails] Re: Debug output / settings for debug sessions

2010-01-10 Thread Fritz Trapper
Sijo k g wrote: I did not understand your question. Sorry for my bad description. I'm still using the debugger and want to optimize my way to use it. 1. Rails has a logging facility, which offers methods to write messages to the log. I'm looking for a technique, that doesn't write debug

[Rails] Second based or permanent tasks in rails

2010-01-10 Thread mrpink
Hi, i've been searching for hours now. May be some one can nudge in me the right direction. What I need. A gem/plugin or tool (OS X) that is capable to perform tasks in a rate of at least 5 seconds. Permanent would be even better. Everything cron related can't be used though because it's

[Rails] Re: Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Frederick Cheung
On 10 Jan, 11:23, Fritz Trapper li...@ruby-forum.com wrote: After I installed prawnto in my project, Mongrel fails to start with these backtrace lines: Sounds like your app is using a version of rails that is too old fred /home/inet/Aptana RadRails

[Rails] Edit only your posts

2010-01-10 Thread Alberto Lopez
Hello, How can I do, when a user make a post, he only can edit his posts? thanks -- 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: fields_for

2010-01-10 Thread pepe
Thanks Rick, After I read your post and looked for the nth time at the documentation I finally saw a couple of things that I had completely misunderstood. I still need help, though. I’ll try to explain as best as possible. - The application uses a legacy DB - A person has many

[Rails] Re: Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Fritz Trapper
Frederick Cheung wrote: On 10 Jan, 11:23, Fritz Trapper li...@ruby-forum.com wrote: After I installed prawnto in my project, Mongrel fails to start with these backtrace lines: Sounds like your app is using a version of rails that is too old That's what I guessed and for that completly

[Rails] Re: fields_for

2010-01-10 Thread Marnen Laibow-Koser
pepe wrote: [...] Unfortunately I am not as comfortable with Rails yet as I would like to be and I have been working on this on and off for more than 2 weeks now. I have hit every possible page (many times) I could find with information about complex forms and multi record processing, watched

[Rails] Re: Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Frederick Cheung
On 10 Jan, 14:45, Fritz Trapper li...@ruby-forum.com wrote: Frederick Cheung wrote: Sounds like your app is using a version of rails that is too old That's what I guessed and for that completly uninstalled rails and gem from my system and reinstalled gem1.8 + rails 2.3.5 But it did not

[Rails] Re: Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Fritz Trapper
Frederick Cheung wrote: the version to use is set in environment.rb (unless you have frozen rails into vendor) Thanks, now the debugger is starting up, but the bad news is, that I still get the same message, than with the former version: uninitialized constant ActiveSupport::Memoizable

[Rails] Re: WiceGrid Plugin version 0.5

2010-01-10 Thread tispratik
Thanks Yuri, keep up the great work. This is exactly what was missing from rails :) -Pratik -- 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 unsubscribe from this

Re: [Rails] Edit only your posts

2010-01-10 Thread Leonardo Mateo
On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez li...@ruby-forum.com wrote: Hello, How can I do, when a user make a post, he only can edit his posts? Check for the owner of the post on the edit action? -- Leonardo Mateo. There's no place like ~ -- You received this message because you are

[Rails] Re: Edit only your posts

2010-01-10 Thread Alberto Lopez
Leonardo Mateo wrote: On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez li...@ruby-forum.com wrote: Hello, How can I do, when a user make a post, he only can edit his posts? Check for the owner of the post on the edit action? Exactly, if you have an user on my website an post anything, you

Re: [Rails] Re: Edit only your posts

2010-01-10 Thread Colin Law
2010/1/10 Alberto Lopez li...@ruby-forum.com: Leonardo Mateo wrote: On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez li...@ruby-forum.com wrote: Hello, How can I do, when a user make a post, he only can edit his posts? Check for the owner of the post on the edit action? Exactly, if you

[Rails] Re: Re: Edit only your posts

2010-01-10 Thread Alberto Lopez
Colin Law wrote: 2010/1/10 Alberto Lopez li...@ruby-forum.com: Leonardo Mateo wrote: On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez li...@ruby-forum.com wrote: Hello, How can I do, when a user make a post, he only can edit his posts? Check for the owner of the post on the edit action?

[Rails] Re: fields_for

2010-01-10 Thread pepe
Hi Marnen, Thanks for taking an interest. I really appreciate you and Rick taking the time to check on my problem. I finally made the whole thing work (kind of). I know I am doing something wrong because the associated objects validations are not being hit, probably because I am creating the

[Rails] Re: Can't kill workling, and it's acting oddly

2010-01-10 Thread John Woods
Bump. Anyone? On Dec 17 2009, 10:29 pm, John Woods john.wo...@marcottelab.org wrote: I've created a monster, and I need help killing it. My setup: I'm using Rails for some scientific work. I run it on my desktop machine, draco, and have starling and memcache on both draco and another

[Rails] Remove a restful action from map.resources

2010-01-10 Thread Ale Ds
Hi, my question is about routing: is it possible to remove a restful action from map.resources ? if few words: I have a City model, and I've declared in routes.rb file: map.resources :users then I obtain ALL restful action, but I don't need neither delete and update action. Do you know some way

[Rails] Re: AuthLogic login page: undefined method `login' and `password'

2010-01-10 Thread John Woods
Hi Lee, and thanks so much for your reply. I checked over my routes, and I think I have resolved a few issues that might have been preventing the login page from working correctly -- but alas, not all of them. I'm still getting exactly the same problems when serving the login page. One issue is

[Rails] Re: Mongrel fails to start after installation of plugin prawnto

2010-01-10 Thread Fritz Trapper
Fritz Trapper wrote: uninitialized constant ActiveSupport::Memoizable (NameError) This was nonsense, sorry. mysql was missing. After running apt-get install libmysqlclient15-dev gem install mysql My app now runs again. Thanks for your help. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Remove a restful action from map.resources

2010-01-10 Thread pharrington
On Jan 10, 1:51 pm, Ale Ds li...@ruby-forum.com wrote: Hi, my question is about routing: is it possible to remove a restful action from map.resources ? if few words: I have a City model, and I've declared in routes.rb file: map.resources :users then I obtain ALL restful action, but I

Re: [Rails] Re: Remove a restful action from map.resources

2010-01-10 Thread Rick DeNatale
On Sun, Jan 10, 2010 at 2:47 PM, pharrington xenogene...@gmail.com wrote: On Jan 10, 1:51 pm, Ale Ds li...@ruby-forum.com wrote: Hi, my question is about routing: is it possible to remove a restful action from map.resources ? if few words: I have a City model, and I've declared in routes.rb

[Rails] Re: tinyint(1) and boolean

2010-01-10 Thread Matt Jones
On Jan 9, 6:16 pm, codeinnova sumangur...@gmail.com wrote: So i had a boolean attribute in my model which gets interpreted to tinyint(1) in mysql by rails migrations. Now tinyint(1) accepts a range in mysql and i want to change my boolean attribute to an attribute which can accept 3

[Rails] Models on existing database?

2010-01-10 Thread Rodrigo Dellacqua
Hey there, Let's say you have a simple application, that already have a users table and you want to re-use that on a different app. How do you work with that? []'s Rodrigo Dellacqua -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] Models on existing database?

2010-01-10 Thread bill walton
Hi Rodrigo, On Sun, 2010-01-10 at 18:01 -0200, Rodrigo Dellacqua wrote: Hey there, Let's say you have a simple application, that already have a users table and you want to re-use that on a different app. How do you work with that? As long as the database is (one of) the ones specified in

[Rails] Re: Second based or permanent tasks in rails

2010-01-10 Thread mrpink
Daemons is the answerof course ;) sudo gem install daemons script/plugin install git://github.com/dougal/daemon_generator.git http://railscasts.com/episodes/129-custom-daemon Regards On Jan 10, 1:42 pm, mrpink so...@webperator.de wrote: Hi, i've been searching for hours now. May be

[Rails] Re: Re: Remove a restful action from map.resources

2010-01-10 Thread Ale Ds
Perfect ! I did't see it in the rails docs. Thank you, Alessandro DS Rick Denatale wrote: Sure you can: map.resources :users, :except = [:delete, :update] there's also an :only option -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter:

[Rails] bad interpreter: No such file or directory when running rake

2010-01-10 Thread Devin McCabe
After upgrading to Snow Leopard, I found my rails and mysql installs to be completely hosed, so I uninstalled ruby, mysql, and rubygems and reinstalled them from these instructions: http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ Here's where things are installed

Re: [Rails] Models on existing database?

2010-01-10 Thread Rodrigo Dellacqua
Hmm.. ok. What about if you want to use multiple databases in your app? []'s Rodrigo Dellacqua On Sun, Jan 10, 2010 at 6:07 PM, bill walton bwalton...@gmail.com wrote: Hi Rodrigo, On Sun, 2010-01-10 at 18:01 -0200, Rodrigo Dellacqua wrote: Hey there, Let's say you have a simple

[Rails] Need advice: threads or Typhoeus?

2010-01-10 Thread PierreW
Hi guys, I need my app to make a few hundreds requests to external web services as quickly as possible. The web services are fairly fast, but still: if I do the requests one after the other, it is too slow. My understanding is I have two options: a- Threads. b- Typhoeus Typhoeus seems great.

[Rails] Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread Rodrigo Dellacqua
Hey there, I'm trying to get started with RoR with Postgresql. I've been trying to find some information on it, but there's a lot of really OLD info on that subject! What should I do to get my application working with Postgresql? I get an error while trying to install the gem. After reading i

Re: [Rails] Need advice: threads or Typhoeus?

2010-01-10 Thread Rodrigo Dellacqua
Hello there Pierre, Threads are not really threads in ruby, so forget about threads. Instead use a background process for that. You can accomplish that using some gem for creating background processes. Delayed Job may be a solution for you. []'s Rodrigo Dellacqua On Sun, Jan 10, 2010 at 7:52

[Rails] Re: Need advice: threads or Typhoeus?

2010-01-10 Thread PierreW
Thanks Rodrigo. The thing is, my main challenge here is speed: I have to wait for the answers to the requests to be able continue. Therefore I am not sure about background processes (or delayed job): are they going to make the requests faster? Will they be able to run concurrently? Thanks,

[Rails] Re: bad interpreter: No such file or directory when running rake

2010-01-10 Thread Devin McCabe
OK, I was somehow able to resolve this error by reinstalling both rake and rails. Now I get a different error: $ rake db:migrate (in /Users/devin/Sites/test) dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from:

Re: [Rails] Re: Need advice: threads or Typhoeus?

2010-01-10 Thread Rodrigo Dellacqua
Pierre, If you need speed, you can spawn multiple processes at the same time. That will increase your throughput. Logically that depends on how powerful your machine is. You can check railscasts.com for background processing casts. []'s Rodrigo Dellacqua On Sun, Jan 10, 2010 at 8:20 PM,

[Rails] set Time.zone to current user time zone

2010-01-10 Thread Johnny Shi
I want to set the Time.zone to the user's current time zone, I don't want to store the timezone in user profile like many other solutions. How to do that? Thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] set Time.zone to current user time zone

2010-01-10 Thread Rodrigo Dellacqua
hmm.. doesn't that come in the Request? Or maybe current_user.time_zone? Just a couple thoughts, I don't really know. []'s Rodrigo Dellacqua On Sun, Jan 10, 2010 at 8:31 PM, Johnny Shi johnny.t@gmail.com wrote: I want to set the Time.zone to the user's current time zone, I don't want to

Re: [Rails] Models on existing database?

2010-01-10 Thread bill walton
On Sun, 2010-01-10 at 19:51 -0200, Rodrigo Dellacqua wrote: Hmm.. ok. What about if you want to use multiple databases in your app? Google is a Rails developer's best friend. The solution you're looking for depends a lot on how you want to manage your connections. Googling 'rails multiple

[Rails] Re: set Time.zone to current user time zone

2010-01-10 Thread Johnny Shi
Correct me if i am wrong, but current_user.time_zone will require you store the time_zone under user profile. On Jan 10, 5:35 pm, Rodrigo Dellacqua rgoyta...@gmail.com wrote: hmm.. doesn't that come in the Request? Or maybe current_user.time_zone? Just a couple thoughts, I don't really know.

[Rails] time_zone_select

2010-01-10 Thread Johnny Shi
How does time_zone_select works? I have: %= form.datetime_select :datetime, :default = Time.now % all datetime are in UTC in the database, here is two questions: 1. how do I add the option for user to select time zone? how to user time_zone_select? 2. what is the proper way to handle that in

Re: [Rails] Re: bad interpreter: No such file or directory when running rake

2010-01-10 Thread Conrad Taylor
On Sun, Jan 10, 2010 at 2:21 PM, Devin McCabe li...@ruby-forum.com wrote: OK, I was somehow able to resolve this error by reinstalling both rake and rails. Now I get a different error: $ rake db:migrate (in /Users/devin/Sites/test) dyld: lazy symbol binding failed: Symbol not found:

[Rails] Re: Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread Marnen Laibow-Koser
Rodrigo Dellacqua wrote: Hey there, I'm trying to get started with RoR with Postgresql. I've been trying to find some information on it, but there's a lot of really OLD info on that subject! What should I do to get my application working with Postgresql? I get an error while trying

[Rails] Re: AuthLogic login page: undefined method `login' and `password'

2010-01-10 Thread John Woods
For the record, I believe I have discovered the problem. Authlogic absolutely requires that there be a login field of some sort in the User model -- even if you don't actually use it for logging in. It also needs to contain some unique value, presumably, or there will be validation problems. I

Re: [Rails] Re: Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread Rodrigo Dellacqua
I tried postgres, ruby-pg etc.. all give me this error. Building native extensions. This could take a while... ERROR: Error installing postgres: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb extconf.rb:4:in `main': uninitialized constant PLATFORM (NameError)

[Rails] Autotest - Can make an-install work.

2010-01-10 Thread Rodrigo Dellacqua
Hey there, I'm trying to install the autotest. After installing all the pre-requisites, I installed the sudo gem install autotest-notification It tells me to execute an-install which gives me, command not found. Any1? []'s Rodrigo Dellacqua -- You received this message because you are

[Rails] Re: HELP TO SHOW IMAGE

2010-01-10 Thread Newb Newb
Matt Jones wrote: On Jan 9, 2:00 am, Newb Newb li...@ruby-forum.com wrote: #-- but still it has not shown the image in the file. that image also in tat file path . but it has not shown the image... any helps It's hard to make out what you mean, so I'll sum up what I *think*

[Rails] Re: Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread adrianb
On Jan 11, 5:55 am, Rodrigo Dellacqua rgoyta...@gmail.com wrote: Hey there, I'm trying to get started with RoR with Postgresql. I've been trying to find some information on it, but there's a lot of really OLD info on that subject! What should I do to get my application working with

[Rails] Auto Sprite 1.0

2010-01-10 Thread Stephen
Hi all, Just want to announce my auto_sprite gem which some of you may find handy.. It makes using CSS sprites painless. As a bonus - should you remove it some day, it doesn't break you app, it just reverts to img tags.. Full docs are at http://fargle.org/auto_sprite In a pinch: 1.

Re: [Rails] Re: Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread Rodrigo Dellacqua
It seems that I'm lacking some dev libraries that Im not aware of. Anyone knows? []'s Rodrigo Dellacqua On Mon, Jan 11, 2010 at 1:35 AM, adrianb adrian.b...@gmail.com wrote: On Jan 11, 5:55 am, Rodrigo Dellacqua rgoyta...@gmail.com wrote: Hey there, I'm trying to get started with RoR

[Rails] updating user status

2010-01-10 Thread Tom Mac
Hi I have the models User belongs_to user_status and UserStatus user_statuses is a master table having values id name 1 Pending 2 Approved 3 Deleted Now when ever a user is created for the first time his user_status_id is 1 (ie pending). Administrator when click on Approve button

Re: [Rails] updating user status

2010-01-10 Thread yong gu
Hi, Maybe you could try acts_as_state_machine On Mon, Jan 11, 2010 at 1:49 PM, Tom Mac li...@ruby-forum.com wrote: Hi I have the models User belongs_to user_status and UserStatus user_statuses is a master table having values id name 1 Pending 2 Approved 3 Deleted Now

[Rails] how to install rails?

2010-01-10 Thread Veena Jose
newbie in ROR. Win XP jruby-1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) Java HotSpot(TM) Client VM 1.6.0_17) [x86-java] jruby -S gem install rails then i got JRuby limited openssl loaded.gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL

[Rails] Re: Ruby on Rails and Postgres - Installing postgresql gem

2010-01-10 Thread adrianb
On Jan 11, 12:13 pm, Rodrigo Dellacqua rgoyta...@gmail.com wrote: It seems that I'm lacking some dev libraries that Im not aware of. Anyone knows? Perhaps the development packages for postgresql? -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: how to install rails?

2010-01-10 Thread ralu
On Jan 10, 10:30 pm, Veena Jose li...@ruby-forum.com wrote: newbie in ROR. Win XP jruby-1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) Java HotSpot(TM) Client VM 1.6.0_17) [x86-java] jruby -S gem install rails then i got JRuby limited openssl loaded.gem install jruby-openssl

[Rails] Re: how to install rails?

2010-01-10 Thread ralu
On Jan 10, 11:53 pm, ralu ralu...@gmail.com wrote: On Jan 10, 10:30 pm, Veena Jose li...@ruby-forum.com wrote: newbie in ROR. Win XP jruby-1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) Java HotSpot(TM) Client VM 1.6.0_17) [x86-java] jruby -S gem install rails then i got

[Rails] My talk at PHPcamp - CakePHP Vs Ruby On Rails

2010-01-10 Thread gautamrege
Hi, Last week-end I gave a talk at PHPCamp in Pune. It was interesting to be surrounded by PHP folks and talking about Ruby On Rails! My talk and tweets later - started a debate on Twitter with the founder of CakePHP :) Have a read: