[Rails] Re: How will be the Future of Rails......? Please do reply

2010-01-22 Thread mark
I don't think you should have one technology under your belt.. Learn many. And to answer some of your questions. Ruby Rails have testing tools, test:unit, rpsec, cucumber, webrat, shoulda, to name but a few. Why isn't it big in industry? It doesn't really have much commercial support for

[Rails] Problems with Rails and no existing files

2010-01-22 Thread Patrick Lindborg
I have had som success with ROR and of course some problem. I have managed to install Ruby on Rails partially. I can issue the command rails myTestApp but the command doesn't create all the necessary files. For example I miss dispatch.fcgi and .httaccess. I installed Ruby 1.8.7, by compiling

[Rails] Layout not coming in tests

2010-01-22 Thread Hemant Bhargava
Hi Champs, I am not able to see the layout page code in test.log? I have design like this: TOP LEFTLayoutRIGHT I am rendering this left panel and right panel both as well as based on conditions rendering Layout. Now, when i ran my test it gives me nothing at the layout page.

[Rails] too many connection

2010-01-22 Thread Lune Lune
Hi, I actually have a mysql error in my ruby script. After several requests I have the too many connections error. But I don't why because I created a queue that runs 5 threads. Every thread execute many mysql requests. I limited the queue to 5 threads to not overload mysql. But it seems that

[Rails] Decent Implementation using ActionMailer

2010-01-22 Thread Anthony Gardner
I need to implement some email functionality to a web application and I was wondering if anyone has implemented a decent mail system and could possibly give me some tips. My initial designs are leaving me a bit cold. In a nutshell, I'm thinking of giving the user the ability to create their own

[Rails] dynamic select menu doesn't work for 'form_tag'

2010-01-22 Thread Manivannan Jeganathan
Hi everyone, I have tried with the dynamic menu using http://railscasts.com/episodes/88-dynamic-select-menus site. i implemented and it was working fine for 'form_for' tag. But i need to do the same function with 'form_tag' as like as, % javascript 'dynamic_states' % %form_tag do% p

[Rails] Problem in accessing SSL enabled mail server

2010-01-22 Thread Rahul Chaudhari
Hi, I have two different mail server servers. Both are SSL enabled. When I try to read mail from my mail box I got following error on 1 machine, Errno::ECONNREFUSED: Connection refused - connect(2) from /usr/lib/ruby/1.8/net/smtp.rb:551:in `initialize' from

[Rails] Forcing load_target

2010-01-22 Thread rsynnott
Hi, I have the case where I have an object A, which has a has_many through relationship with objects B. Each A will be associated with a relatively small number of Bs. I want to cycle through some Bs, and check if an A has them. So, something like: a = A.find 123 bs = B.all bs.map{|b|

[Rails] [JOBS] Position open for Socially Responsible Senior Ruby Engineer

2010-01-22 Thread Archer
Want to use the skills that you've developed throughout your career to make the world a better place? If so, then let's talk. GamesThatGive (http://gamesthatgive.net) just closed on their Series A round and is seeking a Senior Web Engineer interested in building socially responsible web

[Rails] slow acts as ferret indexing - taking 7 days for 10Million rows (2GB db)

2010-01-22 Thread madhu
The Ferret Indexing is taking very 7 days to complete (table with10Million row - DB size is about 2 gb). I could see my memory is used only 40% and cpu is utilized only 10%. but still the indexing is slow. I am running ferret through DRB My acts_as_ferret index definition looks something like

[Rails] Re: ror developers

2010-01-22 Thread Holland deedee
i use ruby rails console netbeans(only for editing and intelisense) github lunar pages dedicated linux server On Jan 21, 5:12 pm, Aleksey Gureiev spyro...@gmail.com wrote: You guys are surprising me. So you are looking for developers and you don't know what you need from them. Given that

[Rails] JOBS - ROR at Oakley

2010-01-22 Thread Oakley Scott
Hello Everyone, I'm seeking some candidates for the following positions: Front End Web Developer https://oakley.taleo.net/careersection/2/jobdetail.ftl?lang=enjob=10467 Web Architect https://oakley.taleo.net/careersection/2/jobdetail.ftl?lang=enjob=10466 Systems Administrator

Re: [Rails] How will be the Future of Rails......? Please do reply

2010-01-22 Thread Steven Elliott Jr
I doubt many companies will off-shore rails development to India. Rails is mostly used by small teams of developers in an agile environment. I currently work in a rails shop and there are four of us building all the systems. We pair everyday and switch it up every other day so everyone

[Rails] Re: Authlogic and Sessions

2010-01-22 Thread Ugis Ozols
Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store -- 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: what should e relationship etween these models

2010-01-22 Thread Eurekin
Consider this example: organizations has_many employees employee belongs_to organization employee belongs_to adminstered_organization -- 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: what should e relationship etween these models

2010-01-22 Thread Tom Mac
Hi Consider this example: organizations has_many employees employee belongs_to organization employee belongs_to adminstered_organization Could you please specify the model structure and relation now? -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Authlogic and Sessions

2010-01-22 Thread Craig White
On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote: Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store yes, this was needed. I think I expected that this was going to be added automatically when I ran

[Rails] Re: How will be the Future of Rails......? Please do reply

2010-01-22 Thread SMR
I use RoR because it excels at fast, quality development if one is willing to learn and use its conventions. It is not perfect, but for 99% of business applications, it is more than adequate. My clients have complex business problems that require well-documented, methodical solutions - they don't

[Rails] Re: what should e relationship etween these models

2010-01-22 Thread Jon Cox
Tom Mac wrote: Hi Consider this example: organizations has_many employees employee belongs_to organization employee belongs_to adminstered_organization Could you please specify the model structure and relation now? maybe the requirement needs to be expanded a touch as it was a

[Rails] creating a new record in a pop-up-window

2010-01-22 Thread tom
hi, i have a Project-Task model association. The Project: SHOW EDIT list the tasks...now: i want to have a pop-up-window triggered in the edit view. the pop-up-window should show a basic Task-NEW form, BUT with some information about the Project, eg the title of the project. after submitting i

[Rails] symbol pointing to a method idiom in ror model

2010-01-22 Thread Hiro Protagonist
IN NEED OF EXPLANATION: class Comment ActiveRecord::Base validate :must_be_friends def must_be_friends errors.add_to_base(Must be friends to leave a comment) unless commenter.friend_of?(commentee) end end The above code comes from rails documentation. There

[Rails] Problem with acts_as_commentable Plugin

2010-01-22 Thread LeonS
Hi, i'm trying to use the acts as commentable Plugin, bit it seems not to work: My Commentable Model is the Task Class. if i try to get the Comments of a Task Object , e.g. task.find(:first) task.comments it occurs this error: ActiveRecord::StatementInvalid: Mysql::Error: Unknown column

Re: [Rails] Re: Authlogic and Sessions

2010-01-22 Thread Craig White
On Fri, 2010-01-22 at 05:44 -0700, Craig White wrote: On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote: Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store yes, this was needed. I think I

[Rails] Routing/File Upload/Put vs. Post puzzle

2010-01-22 Thread Pito Salas
I think I am doing something simply boneheaded but I don't see it. I hope you are willing to take a look: I am simply wanting to upload a file and hand the file in my controller to some code that will process it. It is not getting stored. The UI is a maintain page with a file entry field in a

Re: [Rails] Problems with Rails and no existing files

2010-01-22 Thread Hassan Schroeder
On Fri, Jan 22, 2010 at 12:56 AM, Patrick Lindborg li...@ruby-forum.com wrote: I have managed to install Ruby on Rails partially. I can issue the command rails myTestApp but the command doesn't create all the necessary files. For example I miss dispatch.fcgi and .httaccess. No, those

[Rails] Re: ActiveResource with a Database??

2010-01-22 Thread Matt Jones
On Jan 21, 2:19 pm, David Sainte-claire li...@ruby-forum.com wrote: To start off, I don't know if this is unorthodox, or if someone has had to implement something similar.  I've searched all over Google and don't really a see a good solution for what I'm trying to do. Basically I created my

Re: [Rails] How will be the Future of Rails......? Please do reply

2010-01-22 Thread Satyajit Malugu
+1 for recommeding The passionate programmer On Thu, Jan 21, 2010 at 10:56 PM, Steven Elliott Jr steven.elliot...@me.com wrote: I doubt many companies will off-shore rails development to India. Rails is mostly used by small teams of developers in an agile environment. I currently work in a

[Rails] Re: ror developers

2010-01-22 Thread Matt Jones
On Jan 21, 5:12 pm, Aleksey Gureiev spyro...@gmail.com wrote: You guys are surprising me. So you are looking for developers and you don't know what you need from them. Given that someone said it's, for example, RSpec that they need to know well, how would you to assess the prospective

[Rails] Finding out where a variable is defined

2010-01-22 Thread John Merlino
I'm looking at code in a project. I have no clue what is being passed into the resource parameter: def read_authorized?(resource) if resource.respond_to? :user_read_authorized? resource.user_read_authorized? current_user else true end end Is there any

Re: [Rails] Finding out where a variable is defined

2010-01-22 Thread Colin Law
2010/1/22 John Merlino li...@ruby-forum.com: I'm looking at code in a project. I have no clue what is being passed into the resource parameter:    def read_authorized?(resource)      if resource.respond_to? :user_read_authorized?        resource.user_read_authorized? current_user      else

[Rails] Re: nested forms and attr_accessable

2010-01-22 Thread byrnejb
I have some further trace information regarding this situation. I am really at a bit of a loss here on how to proceed. I cannot find any evidence that the update user attributes is working. This is in my User model: has_many:roles, :through = :clearances has_many

Re: [Rails] Finding out where a variable is defined

2010-01-22 Thread Rob Biedenharn
On Jan 22, 2010, at 1:02 PM, John Merlino wrote: I'm looking at code in a project. I have no clue what is being passed into the resource parameter: def read_authorized?(resource) if resource.respond_to? :user_read_authorized? resource.user_read_authorized? current_user else

[Rails] Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: Is there any kind of debugging feature I can run to see what gets passed into resource in this specific instance. Have a look at the Rails Guide on debugging then use ruby-debug to break into the function. Then you can inspect

[Rails] Re: How to generate OR conditions in a scope

2010-01-22 Thread Ginty
Hi Aleksey, I think it just comes down to preference really and I prefer the idea of a having a common rule that I start all finders with current_office and then I instantly know that I have safely scoped it to the current application instance. Of course you way would work to, I just think that

Re: [Rails] Re: Finding out where a variable is defined

2010-01-22 Thread Colin Law
2010/1/22 John Merlino li...@ruby-forum.com: Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: Is there any kind of debugging feature I can run to see what gets passed into resource in this specific instance. Have a look at the Rails Guide on debugging then use ruby-debug to

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: terminal and nothing happens. Have you put the line debugger at the appropriate point to break in your app? That is what it means by your app calling the debugger method. You should then see the break happen in the same

[Rails] Re: How to generate OR conditions in a scope

2010-01-22 Thread Marnen Laibow-Koser
Ginty wrote: Hi Aleksey, I think it just comes down to preference really and I prefer the idea of a having a common rule that I start all finders with current_office and then I instantly know that I have safely scoped it to the current application instance. Of course you way would work

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
John Merlino wrote: Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: terminal and nothing happens. Have you put the line debugger at the appropriate point to break in your app? That is what it means by your app calling the debugger method. You should then see the break

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread Marnen Laibow-Koser
John Merlino wrote: [...] I was able to fix the above error. However, I try to inspect what the value of resource is and I get this using the p command as the rails guide suggests: (rdb:1) p resource NameError Exception: undefined local variable or method `resource' for

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Marnen Laibow-Koser wrote: John Merlino wrote: [...] I was able to fix the above error. However, I try to inspect what the value of resource is and I get this using the p command as the rails guide suggests: (rdb:1) p resource NameError Exception: undefined local variable or method

[Rails] Fwd: STDIN gets method issue with rspec

2010-01-22 Thread gokul murthy
Hi, I am new to rspec. I am trying to write a spec for a simple ruby program i.e class First def test a = gets.chomp return a end end I have tried in different ways test method is called from the spec file. but gets.chomp is not executing… Please kindly advise me, how to write spec for this.

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread Marnen Laibow-Koser
John Merlino wrote: [...] I'm confused when I do this: (rdb:5) p read_authorized?(resource) true It returns a value of true. But it's undefined? No. Based on what you've said, resource is undefined, but read_authorized? Is written in such a way that if it is passed an undefined

[Rails] Re: Problems with Rails and no existing files

2010-01-22 Thread Patrick Lindborg
Hassan Schroeder wrote: On Fri, Jan 22, 2010 at 12:56 AM, Patrick Lindborg li...@ruby-forum.com wrote: I have managed to install Ruby on Rails partially. I can issue the command rails myTestApp but the command doesn't create all the necessary files. For example I miss dispatch.fcgi and

Re: [Rails] Re: Problems with Rails and no existing files

2010-01-22 Thread Hassan Schroeder
On Fri, Jan 22, 2010 at 1:35 PM, Patrick Lindborg li...@ruby-forum.com wrote: But I hade read several guides and tutorials that those files are created and modified. There are certainly outdated tutorials out there, unfortunately. -- Hassan Schroeder

[Rails] Re: Re: Problems with Rails and no existing files

2010-01-22 Thread Patrick Lindborg
Hassan Schroeder wrote: On Fri, Jan 22, 2010 at 1:35 PM, Patrick Lindborg li...@ruby-forum.com wrote: But I hade read several guides and tutorials that those files are created and modified. There are certainly outdated tutorials out there, unfortunately. -- Hassan Schroeder

Re: [Rails] Re: Re: Problems with Rails and no existing files

2010-01-22 Thread Hassan Schroeder
On Fri, Jan 22, 2010 at 2:06 PM, Patrick Lindborg li...@ruby-forum.com wrote: Ok I found one of those on Ruby On Rails website though. URL? Could you or someone else point me to a more up to date tutorial? http://guides.rails.info/getting_started.html currently based on 2.3.3 HTH, and

[Rails] Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Rob Biedenharn wrote: On Jan 22, 2010, at 1:02 PM, John Merlino wrote: Is there any kind of debugging feature I can run to see what gets passed into resource in this specific instance. Also, user_read_authorized? is not defined anywhere else in application. Is that legal in rails?

[Rails] Re: Re: Re: Problems with Rails and no existing files

2010-01-22 Thread Patrick Lindborg
Hassan Schroeder wrote: On Fri, Jan 22, 2010 at 2:06 PM, Patrick Lindborg li...@ruby-forum.com wrote: Ok I found one of those on Ruby On Rails website though. URL? Could you or someone else point me to a more up to date tutorial? http://guides.rails.info/getting_started.html

[Rails] Rails requires RubyGems

2010-01-22 Thread Periyasamy Ramachandiran
Hi, When i open the rails application by netbeans i got the error as below, Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. I have the ruby version ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-linux] And the below list are gem list actionmailer

Re: [Rails] Rails requires RubyGems

2010-01-22 Thread Rob Lacey
Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. Its all there for you sudo gem update --system On 23 January 2010 03:34, Periyasamy Ramachandiran li...@ruby-forum.com wrote: Hi, When i open the rails application by netbeans i got the error as

[Rails] Re: Rails requires RubyGems

2010-01-22 Thread Periyasamy Ramachandiran
Rob Lacey wrote: Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. Its all there for you sudo gem update --system On 23 January 2010 03:34, Periyasamy Ramachandiran li...@ruby-forum.com wrote: [i686-linux] rack (1.0.1) -- Posted via

Re: [Rails] Re: Rails requires RubyGems

2010-01-22 Thread kannav rajeev
try only sudo gem update and reply if its not works On Sat, Jan 23, 2010 at 10:48 AM, Periyasamy Ramachandiran li...@ruby-forum.com wrote: Rob Lacey wrote: Rails requires RubyGems = 1.3.1 (you have 1.2.0). Please `gem update --system` and try again. Its all there for you sudo gem

[Rails] Re: Re: Rails requires RubyGems

2010-01-22 Thread Periyasamy Ramachandiran
kannav rajeev wrote: try only sudo gem update and reply if its not works On Sat, Jan 23, 2010 at 10:48 AM, Periyasamy Ramachandiran li...@ruby-forum.com wrote: [i686-linux] . http://www.robl.me To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe

Re: [Rails] Re: Re: Rails requires RubyGems

2010-01-22 Thread kannav rajeev
goto http://rubyforge.org/frs/?group_id=126release_id=37073 download ruby gem 1.3.1 unpack it in your application then gem install (which is unziiped full name) -- local thats it it looks like that rails_appsudo gem install (which is unziiped full name) -- local ok its over On Sat, Jan 23, 2010

[Rails] Re: Rails requires RubyGems

2010-01-22 Thread Periyasamy Ramachandiran
Hi sharma, Thanks for your response. I tried as you have mentioned 'sudo gem update'. I got some gem update for rack and ruby-debug. Please find the result below, [r...@localhost ~]# sudo gem update Updating installed gems Updating rack Successfully installed rack-1.1.0 Updating

[Rails] Re: Re: Re: Rails requires RubyGems

2010-01-22 Thread Periyasamy Ramachandiran
kannav rajeev wrote: goto http://rubyforge.org/frs/?group_id=126release_id=37073 download ruby gem 1.3.1 unpack it in your application then gem install (which is unziiped full name) -- local thats it it looks like that rails_appsudo gem install (which is unziiped full name) -- local ok

Re: [Rails] Re: Re: Re: Rails requires RubyGems

2010-01-22 Thread kannav rajeev
sudo **gem install rubygems-update -v 1.3.1 On Sat, Jan 23, 2010 at 11:33 AM, Periyasamy Ramachandiran li...@ruby-forum.com wrote: kannav rajeev wrote: goto http://rubyforge.org/frs/?group_id=126release_id=37073 download ruby gem 1.3.1 unpack it in your application then gem install

[Rails] Re: Rails Render Issue

2010-01-22 Thread senling
Controller name user. I have changed to user/index, still same error. Development.log: Processing UserController#surahome (for 192.168.1.5 at 2010-01-23 00:09:08) [GET] Rendering template within layouts/standard Rendering user/surahome ActionView::TemplateError (Missing

[Rails] Re: Rails Render Issue

2010-01-22 Thread senling
Controller name user. I have changed to user/index, still same error. Development.log: Processing UserController#index (for 192.168.1.5 at 2010-01-23 00:09:08) [GET] Rendering template within layouts/standard Rendering user/index ActionView::TemplateError (Missing template

[Rails] Mail version 2.0 released

2010-01-22 Thread Mikel Lindsaar
Lots of new features, but a few API changes (thus the MAJOR version change). Basics are: Network Delivery classes are no longer singletons, each instance of Mail can have it's own delivery method Attachments are just parts and have an awesome API Mail default values for address fields can be