search for: find_by_identifi

Displaying 4 results from an estimated 4 matches for "find_by_identifi".

Did you mean: find_by_identifier
2006 May 18
2
How to debug the rendering in Rails?
Hi, I have some controller code like this: def mailing_lists @ml = MailingList.find_by_identifier(@params[:id]) @messages = @ml.messages @headers["Content-Type"] = "application/atom+xml" @response.headers[''Last-Modified''] = @messages.last.created_on.httpdateunless @ messages.empty? minTime = Time.rfc2822(@request.env["HTTP_IF_MODIFIE...
2013 Mar 28
1
undefined method 'sanitize_limit' for #<ActiveRecord::Relation:0x2aaaad35d720>
...m/rails/rails/issues/1974 Hence updated to: test = where(search_column_name => attributes[search_column_name]).all.to_a.first ...and this statement started working fine. But, find_by_name() is still failing with the same error. for eg. the below statement is not always working. test_lookup = find_by_identifier(lookup_str) || find_by_name(lookup_str) || find_by_abbreviation(lookup_str) statement is called under a function, defined in a model: def self.lookup(lookup_str) return nil if lookup_str.blank? test_lookup = find_by_identifier(lookup_str) || find_by_name(lookup_str) || find_by_abbreviation...
2006 May 18
0
SOLVED: Re: How to debug the rendering in Rails?
...at were rendered to the webrick console in the dev environment, but that made fastcgi trip ... Cheers, Mariano On 5/18/06, Mariano Kamp <mariano.kamp@gmail.com> wrote: > > Hi, > > I have some controller code like this: > > def mailing_lists > @ml = MailingList.find_by_identifier(@params[:id]) > @messages = @ml.messages > @headers["Content-Type"] = "application/atom+xml" > @response.headers[''Last-Modified''] = @ > messages.last.created_on.httpdate unless @messages.empty? > > minTime = Time.rfc2822(@req...
2007 May 15
5
Problem with RJS and/or Prototype.js =>ResponseText is blank
...ot;Comment") page[:latest].visual_effect :highlight, :startcolor => "#ffffff" #, :endcolor => "#b1d0e9" The controller action looks like this def comment @comment = Comment.new(:text => params[:text]) @comment.user = User.find(:first) @comment.entry = Entry.find_by_identifier(params[:entry]) if (@comment.save) @latest_comment = @comment # render :partial => "/common/comments/comment", :object => @comment # This fails too else render :action => "show" end end The form looks like this <% form_remote_tag(:url => { :a...