similar to: To render or redirect

Displaying 20 results from an estimated 200 matches similar to: "To render or redirect"

2006 Jan 31
11
ez_where plugin updated features.
Friends- I wanted to let people know that there is a new experimental release of this plugin. I would love feedback on syntax and features. There is now a full test suite with fixtures that covers all the available syntax. Look at the test suite for more syntax possibilities. There have been many additions since my last release. Fabien Atelier has been working on this with me and has
2007 Jan 20
1
Not appear error message
I have a partial form "empresa". In new.rhtml of "empresa", I call the partial form of "usuario". Well, it is happening the following: When save empresa, and stop in validates, as much in "empresa" how much "usuario", appear only error message of "empresa", and not of "usuario". Because this happening? ps1.: I use flash_message
2008 Apr 26
0
moving pagination code to model
Hi I have the controller code as below # step 1: set the variables you''ll need page = (params[:page] ||= 1).to_i items_per_page = 20 offset = (page - 1) * items_per_page # step 2: instead of performing the full find, just find the record count @search_sd_ticket_count_result =
2008 May 19
0
changed to will_paginate
Hi Till now we used the rails pagination.But now onwards shifting to will_paginate The code I use currently is as below .This is with the help of find_where pluggin..A fantastic pluggin which we still want to use...I would like to know how can i modify the following code to work with will_paginate step 1: set the variables you''ll need page = (params[:page] ||= 1).to_i
2008 Mar 06
1
pagination for an object array
def show_details @sd_ticket = ServiceDeskTicket.find(params[:id]) @servicedesk_cis = @sd_ticket.service_desk_cis end What I need is a pagination for @servicedesk_cis using the custom pagination..How can i give offset and limit to this? I have successfully done previously custom pagination in another def as below def search_sd_ticket @search_sd_ui_hash=params[:sd_ticket]
2008 Dec 07
1
Identifying a subset of observations on a 3d-scatter plot using cloud()
Hello everyone, This is my first post to the mailing list, so I hope I am posting my message the correct way. I am trying to present my dataset in a 3d scatterplot using cloud() in the {lattice} package. I hope to explicitly identify a subset of my observations. The observations in this subset need to satisfy the following critera (values on x,y, and z axes above a certain cutoff value). It
2006 Sep 11
0
centos server cd production release criteria?
Greetings and thank you CentOS team for very quick production and maint across all version number releases !!! In regards to 4.4, is the CentOS Server_CD for 4.4 already in production and testing? May we know the ETA for it on the mirrors please? If it will be quite awhile, may we know more about how it is produced and any release critera you have for it please? Thank you and kind regards! -
2008 Jun 13
1
Looping, Control Flow & Conditional Statements
Dear R Group: I have little experience using R and even less experience with control flow type questions. See the following code: a1 = c(0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0) for(i in 1:1){ sx <- paste("a",i,sep="") s <- eval(parse(text = paste("a",i,sep=""))) {g = numeric(length(s)) k =
2004 Jul 23
1
nlme parameters in nlmeControl
Hello all. I'm doing a simulation study where I will be making use of the 'nlme' package. I want to loosen up the convergence criteria so that I increase the likelihood of convergence (potentially at the cost of obtaining slightly less than ideal results). The parameters in the function nlmeControl() control the convergence criteria. These default values can be modified to make
2013 Sep 19
1
Index error copying compressed message
Hi. Dovecot 2.2, with the zlib plugin, I think we're getting bad index entries on IMAP COPY. On copying a message to an empty folder, in the dovecot error log I see: Sep 19 20:34:25 imap01 dovecot: imap(grain at rp-auth-test.com): Error: Cached message size smaller than expected (615 < 971) Sep 19 20:34:25 imap01 dovecot: imap(grain at rp-auth-test.com): Error: Corrupted index cache file
2007 Nov 26
8
search not working after upgrade
Izit Izit wrote: > Correction on my previous post. > > The correct way to do it is: > > Product.find_by_contents("*",{},:conditions =>search_conditions,:include > => [:supplier],:order =>"products.id" ) > > Leave out the :limit=>:all that is put in by default. Exactly - I tried to make aaf a bit more clever by letting it assume :limit
2018 Feb 23
2
Assertion during dsync receive
Hi, I'm getting an assertion failed on the receiving side, causing syncs to fail for one user. The servers are setup so that only one is receiving any traffic other than replication at any time. The one that's only receiving replications is the one that's failing. I've tried deleting the user's home on the receiving server, but it still crashes during the sync. Oddly, the
2006 Mar 08
2
RJS - page object in helpers?
Hello, I am using RJS and Edge Rails and I was wondering if the page object should be available in helpers also. For example if I have a helper function def update_flash_messages page.replace_html ''flash_messages'', (show_flash_messages :textilize => true) page.visual_effect ''flash_messages'', :appear end and then in my RJS files I call
2011 Jan 25
1
subsetting based on joint values of critera
Dear colleagues, I have a dataset that looks as below. I would like to make a new dataset that excludes the cases which are joint conjunctions of particular state names and years, so Connecticut and 2010, Maryland and 2010 and Vermont and 2010. I'm trying the following subset code: newdata<- subset(bpa, (!State=="Connecticut" & year<"2010")) It appears that
2009 Oct 07
2
Rails, flash, function and parameter
Hi, I try do update the flash on my page with ajax. I have this on my layout : <div id="flash_messages"> <%= render :partial => ''layouts/flash'' %> </div> I have this on my ApplicationHelper : def reload_flash page.replace "flash_messages", :partial => ''layouts/flash'' end and I try do that on my controller :
2002 May 02
5
Application Database RFC
I have done a lot of thinking about the Application Database http://appdb.codeweavers.com lately and how the rating system works. We currently have 848 Applications in there but only 58 with a 5 star rating which works out to less than 10% and thats the good news. The bad news is that of those 58 only 26 rate that without windows installed. After takeing a closer look, none of the apps I
2013 Apr 19
0
Question marks in SQL string literals
Hi all! Recently I discovered that AR tries to treat question marks inside SQL string literals as parameters, however this behaviour shows in very rare cases, for example (very odd, but...): User.where("NOT EXISTS (#{ Comment.where(''user_id = users.id AND body ILIKE ?'', ''%?'').to_sql }) AND created_at > ?", Date.yesterday).to_sql It will fail,
2005 Aug 04
1
Pagination and :include (eager associations)
I have tried to use eager association with pagination, but the :include option is not supported: Here''s the one-line pagination call without :include @link_pages, @links = paginate :link, :per_page => 10, :order_by => sort_clause and here the work around, using the "classic" method # @link_pages = Paginator.new self, Link.count, 10,
2011 Apr 10
0
Arel Union does not support #order or #limit
I just posted this ticket in Lighthouse, but thought perhaps some discussion here would help point me in the right direction toward a solution. Here is a description of the problem (from the ticket - https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6693-arel-union-does-not-support-order-or-limit) : > If we take two `ActiveRecord::Relations` and join them via `union`:
2010 Aug 17
3
Rails 3 flash message problems
The following code in my application_helper.rb class either eats the flash message or escapes it and does not display properly: # Outputs the corresponding flash message if any are set def flash_messages messages = [] %w(notice warning error).each do |msg| messages << content_tag(:div, content_tag(:p, html_escape(flash[msg.to_sym])), :class => "message