[Rails] Re: link_to helper (or some other method) on an entire table

2010-01-23 Thread Marnen Laibow-Koser
lunaclaire wrote: > Never mind. It just dawned on me... For others who may wonder: > > onclick="location.href='<%= url_for([...@user, contact]) %>';" > style="cursor: pointer;"> Wow! I realize that this HTML was handed to you, but please, never do it this way. Problems which you should correc

[Rails] Re: Layout not coming in tests

2010-01-23 Thread Hemant Bhargava
Thanks for your replies champs.. I have resolved it .. The problem was that in my layouts stating page i have included html comments.. So i removed them and it worked for me .. :) Cheers .. Alpha Blue wrote: > Besides posting code, make sure when you create scaffolds, that you > remove the def

[Rails] ExceptionNotifier in development mode

2010-01-23 Thread Craig White
I don't seem to be happening here... config/environments/development.rb set... config.action_controller.consider_all_requests_local = false application_controller.rb has.. include ExceptionNotifiable and in script/console, I can see that... ExceptionNotifier.raise_delivery_errors (false) Excep

[Rails] [ANN] loofah 0.4.2 Released

2010-01-23 Thread Mike Dalessio
loofah version 0.4.2 has been released! * * * Loofah is a general library for manipulating HTML/XML documents and fragments. It's built on top of Nokogiri and libxml2, so it's fast and has

[Rails] Re: Problem in rendering :partial with auto_complete_field

2010-01-23 Thread Mc Ieong
Mc Ieong wrote: Anyone has success experience on rendering partial with auto_complete insided ?? -- 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-

[Rails] Re: Problem in rendering :partial with auto_complete_field

2010-01-23 Thread Mc Ieong
Mc Ieong wrote: Anyone has success experience on rendering partial with auto_complete insided ?? -- 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

[Rails] OrderedHash Rails 2.3.2

2010-01-23 Thread doug
I understand that ActiveSupport::OrderedHash.new [[1,2]] does not work beginning with Rails 2.3. I am running Rails 2.3.2. One commentator suggested simply creating the instance without arguments and then sequentially adding each element as a separate step. I tried that. The hash gets po

[Rails] Re: link_to helper (or some other method) on an entire table row?

2010-01-23 Thread lunaclaire
Never mind. It just dawned on me... For others who may wonder: Note the url_for call (in this case on a nested resource) On Jan 23, 4:57 pm, lunaclaire wrote: > I'm trying to implement a design handed to me where an entire row of a > table is a link to view details about the obj shown in that

[Rails] link_to helper (or some other method) on an entire table row?

2010-01-23 Thread lunaclaire
I'm trying to implement a design handed to me where an entire row of a table is a link to view details about the obj shown in that row. The html handed to me looks like this: Person's Name Home:Person's Email note the 'onclick' in the Is there a Rails Way to do this? -- You recei

[Rails] Help for beginners? Nested resources, Authentication, and Authorization

2010-01-23 Thread acreadinglist
In this thread, I hope to gather explanations from more experienced Rails users than I on how to approach the topics of nested resources, authentication, and authorization, areas that in my own experience as a Rails newcomer and based on my findings in newsgroups, forums, and articles, quickly pres

[Rails] Re: RE: Suggestions for a non tech guy to teach himself Ruby

2010-01-23 Thread Marnen Laibow-Koser
Alpha Blue wrote: [...] > As for javascript, ajax is a great book on its own. I know how you feel > about non-conventional sites Marnen No, apparently you don't. I love Ajax in its proper context. I've developed complex Ajax applications. I'd love to do so again. But I simply do not belie

[Rails] Re: Problem in rendering :partial with auto_complete_field

2010-01-23 Thread Mc Ieong
T. N. T. wrote: > Mc Ieong wrote: >> I wrote some codes to generate a input field with auto complete >> functionality, these codes work well in a regular form, the codes are: > > What about showing us the not working code? In particular the partial > and the > > render :partial => ???, collecti

[Rails] initializers

2010-01-23 Thread Craig White
Have a bit of a conundrum that I need to solve I would like to put this into environment.rb... config.action_mailer.default_url_options = { :host => Setting[:website_url] } but it obviously can't read from the database before it is initialized and the configuration for action_mailer 'options' ap

Re: [Rails] [SOLVED]Re: Authlogic and Sessions

2010-01-23 Thread Craig White
On Fri, 2010-01-22 at 09:36 -0700, Craig White wrote: > 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.sessi

[Rails] Additional attributes for objects in multi-object forms

2010-01-23 Thread Kura Monni
Hello, So basically I have a case of multiple objects in one form. I have implemented sort of bulk_update_or_delete method that updates all the fields for all of the objects and which is working fine at the moment. However, I'm still a bit lost with the whole process when it comes to additional pa

[Rails] Re: Forcing load_target

2010-01-23 Thread pepe
Hi, I'm not sure I'm understanding. Are you asking about eager loading associations? If that is the case it can be done with :include when you get you A record. On Jan 21, 11:34 am, rsynnott wrote: > Hi, > I have the case where I have an object A, which has a has_many through > relationship with

[Rails] [JOB] tester / developer

2010-01-23 Thread bill walton
Greetings, We're looking for an experienced Selenium developer to put together a test suite for two Rails apps. Ideally that person would: 1) be located in or near DFW Texas 2) have some programming background 3) have a strong desire to move into a Rails development position 4) be willing to cons

[Rails] Re: Problem in rendering :partial with auto_complete_field

2010-01-23 Thread T. N. T.
Mc Ieong wrote: > I wrote some codes to generate a input field with auto complete > functionality, these codes work well in a regular form, the codes are: What about showing us the not working code? In particular the partial and the render :partial => ???, collection => ... Regards, T. -- Pos

[Rails] Re: Rails requires RubyGems

2010-01-23 Thread Periyasamy Ramachandiran
kannav rajeev wrote: > is tat work last one or not ? > On Sat, Jan 23, 2010 at 11:44 AM, kannav rajeev > wrote: > >>> > looks >>> >> Building native extensions. This could take a while... >>> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> You received this message because you

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

2010-01-23 Thread Rails ROR
Hi, Thanks for the mail. I would really consider this point and would surely learn different technologies. Your mail was really inspiring. Thanks for showing me the way. Your mail really matters me at this point of time. Thanks Bye!! On Fri, Jan 22, 2010 at 12:08 AM, mark wrote: > I don'

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

2010-01-23 Thread kannav rajeev
is tat work last one or not ? On Sat, Jan 23, 2010 at 11:44 AM, kannav rajeev wrote: > 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_i

[Rails] Problem in rendering :partial with auto_complete_field

2010-01-23 Thread Mc Ieong
I wrote some codes to generate a input field with auto complete functionality, these codes work well in a regular form, the codes are: = <%= auto_complete_field( "vc_container_no", :frequency => 0.01, :min_chars => 2, :u

[Rails] Re: nested forms and attr_accessable

2010-01-23 Thread T. N. T.
James Byrne wrote: >... > And this is what params looks like after the submit button is > selected: > > {"user"=> {"id"=>"146"}, "commit"=>"Commit Changes", "_method"=>"put", > "action"=>"update", "clearance"=>[{"id"=>"122", "description"=>"Just a > test", "effective_from"=>"2009-01-01"}, {"role_

[Rails] Formtastic

2010-01-23 Thread Mark Jonas
hey i have some problems with formtastic. i want that the users can create her forms but other users can not edit the forms of other users. i am searching for a command. i think i have to add something in my def edit. some ideas? need more information or code? thanks -- Posted via http://www.ru

Re: [Rails] Re: Rails Render Issue

2010-01-23 Thread tommy xiao
hits: redirect_to :controller => 'photos', :action => 'index' 2010/1/23 Colin Law > On 23 January 2010 07:20, senling wrote: > > Controller name user. > > > > I have changed to user/index, still same error. > > > > Development.log: > > > > > > Processing UserController#index (

[Rails] Re: ror developers

2010-01-23 Thread Aleksey Gureiev
Very nicely put, Matt. I share your view completely. This all boils down to having the right mind set, but unfortunately the person who's looking for the team may not be ready to assess if the mind set is right. That's why in many cases people are looking for "the rule of the thumb" -- to simplify

Re: [Rails] question on how to form this query elegantly

2010-01-23 Thread Colin Law
On 22 January 2010 21:24, palidanx wrote: > Hi everyone, > > I have a model like the following > User.id > > Friends > invited (fk to user) > inviter (fk to user) > > Now, what I would like to do is given a uid, retrieve all the users > related to the inviter.  So a retarded way of oding hti sis..

Re: [Rails] Re: Rails Render Issue

2010-01-23 Thread Colin Law
On 23 January 2010 07:20, senling wrote: > 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

[Rails] question on how to form this query elegantly

2010-01-23 Thread palidanx
Hi everyone, I have a model like the following User.id Friends invited (fk to user) inviter (fk to user) Now, what I would like to do is given a uid, retrieve all the users related to the inviter. So a retarded way of oding hti sis.. friendRequests = Friend.find(:all, :conditions => {:invited

[Rails] Re: SQLServer on Rails

2010-01-23 Thread mceranski
I wrote this tutorial for using Ruby on Rails with SQL Server. It is very easy to follow: http://www.codecapers.com/post/A-Ruby-on-Rails-Tutorial-for-NET-Developers.aspx On Jan 3, 5:34 pm, Damjan Rems wrote: > Leonardo Mateo wrote: > > On Sun, Jan 3, 2010 at 4:10 PM, steve wrote: > >> Does any o

[Rails] [JOBS] Web Programmer at Reed College, Portland OR

2010-01-23 Thread mcolgr...@reed.edu
Reed's department of Web Support Services seeks a creative Web Programmer to design, develop, migrate, and customize web applications for the campus portal and courseware systems. Qualifications include: experience with Ruby on Rails and other open source programming frameworks, experience develop

[Rails] Can't create TCP/IP socket (10106

2010-01-23 Thread Nigels Soden
I'm still in the dark with this. So far I've had no success, any other suggestions. -- 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-t...@googlegro