similar to: template choice error (layout.rb)

Displaying 20 results from an estimated 100 matches similar to: "template choice error (layout.rb)"

2006 Jan 11
0
AJAX: link_to_remote problem
I use: <%= link_to_remote("Update", :update => ''mydiv'', :url => { :action => :create, :host => ''rails'' }) %> which generates the following: <a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'', {asynchronous:true, evalScripts:true}); return
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a view ''list'' that renders a collection: <%= render :partial => ''item'', :collection => @items %> The item partial looks like so: <div id="item_<%= item.id %>"> ... <div id="price"> <%= in_place_editor_field :item, :price
2006 Feb 07
3
in place edit, save on blur
I thought I''d seen some discussion on this, but can''t find it. I have a text area that I''d like to save on blur unless the user clicks cancel. Anyone got a nice example of this? It''s non-obvious to me how I force the submit via javascript. Thanks, pt. -- Parker Thompson http://www.parkert.com/ 510.541.0125
2005 Dec 21
2
Missing error page templates
Whenever I get any errors on my application, I don''t get the regular rails error page with all the debugging information. What could''ve cause this? This is from the logs: ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template found for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/template_error.rhtml):
2006 Mar 07
12
rjs and partials
I''m trying to update a list, and having a hard time applying visual effects to the latest element created. Here is what I''m doing. =========================================== 1) Creating an "item" via an action, then rendering the RJS template 2) RJS template looks like this: page.insert_html :top, ''items'', :partial =>
2006 Jan 30
5
a RJS problem/patch
Hi, add_rjs_to_action_view.rb of javascript_generator_templates doesn''t work with setting Content-Type in a controller. (e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding class ApplicationController < ActionController::Base before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html; charset=utf-8" end end I
2006 Jan 25
2
inserting column headings between grouped rows
Hello all, I have what is conceptually a pretty simple poblem, but can''t think of an obvious solution. I have a group of objects (@items), that I wish to render as rows. Items have dates, and I wish to group them by that date, inserting a header row each time the date changes e.g.: header row row 11/11/2004 row 11/11/2004 header row row 11/23/2004 I''m currently
2006 Jan 10
6
Can we cache user home pages?
Hi Railers, I am trying to create a simple application like a guest book which has users and uses sessions to keep track of which users are logged on. The user''s page is constructed after doing some SQL queries and the user clicks on another link and hits the back button I dont want to regenerate the whole page (which is what happens now) .So I want to use some kind of caching mechanism.
2005 Dec 28
3
acts_as_taggable query
Hi , I couldnt find any mailing list for this nice plugin so I hope this is not off topic.I just have a basic question here. I already had created a table and a model for the tags and items and the join table and now want to use this plugin but I just cant seem to figure out how to make it use my table instead of the default. class Tag < ActiveRecord::Base # already exists and has the
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say: !>graphic.png! the textile() method will successfully render a right-float image. Now, if I want to escape the user''s text using h(), the ''>'' is turned into an &amp;. Obviously, the image then fails to render in a browser. Is there a work around for this? I guess what I''m really asking
2006 Oct 27
5
Purpose of after_initialize in ActiveRecord?
All, I have a quick question - is the purpose of implementing after_initialize to allow custom attribute initialization for AR descendants? I have been overriding initialize whenever I require custom setup of my model classes, like so: def initialize(attributes = nil) super self.Status = ''G'' end So I have a couple of questions: 1) Could I achieve the same
2005 Dec 15
2
Rails 1.0 & RJS Templates
Hello all, I just successfully updated my dev env to Rails 1.0. I then wanted to get .rjs templates working and followed Cody''s instructions at http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin . However, when I try to run ''rake test'' I get the following error: (in
2006 Dec 08
19
HABTM join table quirk
I''ve been bringing up a good basica framework for applications at work. To give decent security I''ve been implementing the Rails Recipie for Authorization of function calls modeled on the book''s implementation. (Changes for our environment were added..but are minor.) Since I initially let Rails create the join table between two data tables with a HABTM relationship....I
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails: http://wordie.org Make lists of words. See who else likes the same words. Basically, it''s a dating site. Built on thanksgiving while half-watching football and launched yesterday. In other words, half-baked, but I thought some of you might find it mildly amusing. John ____________________________ John McGrath Squirl: a site for
2006 Jan 13
1
missing Enum class (windows install)
Hey, mac died this week (launch is Monday), trying to deal by getting Windows set up for development. I''ve got everything up and running, but when I try to hit my app I get an "unitialized contstant Enum error". Sure enough, enum.rb doesn''t exist (according to windows search) on the machine. Now I''m trying to figure out how to fix this. I installed Ruby by
2007 Jun 17
1
actionmailer & picture
Hello I''m using action mailer to create an HMTL outbound email. This email renders a partial. In that partial, a call is made to a public location to get a picture for display in the email. When this email is generate, I get the following error (note: I''m sure it has something to do with not understanding the context of actionmailer and how it functions): NoMethodError in
2006 Jun 05
0
testing actionmailer from a controller
Hello, Our application sends e-mail using a number of templates based on the situation. We would like to test that the appropriate template is getting rendered based on the controller state. assert_template would work to test which template is being rendered to the browser. But this doesn''t tell us which template was used to send the e-mail. Anyone have a solution to this problem?
2006 Mar 21
0
Job - San Francisco
Tom (below) is looking for 1-2 programmers in SF that know rails or have a strong background in web & OO development and want to learn. ---------- Forwarded message ---------- "thomaspaynejr@yahoo.com" has forwarded you this craigslist.org posting. Please see below for more information. ________________________________ Do you like wine? C''mon, of course you do! We are
2006 Jan 28
1
like clause for find
I''ve done a bit of searching, but got too much noise and no perceivable signal. So, I apologize if I''m just missing this in the docs, seems like it should be easy. I''d like to provide some basic search functionality in my app by allowing the user to enter in some text and generating a query like so: SELECT * FROM things WHERE field LIKE ''%input''%;
2005 Dec 24
0
acts_as_taggable - adding users and normalizing tags
Hey all, I''m wondering how people are using acts_as_taggable. Two things I''d like to do that aren''t supported out of the box are tag normalization and user attribution. I can''t imagine I''m the first to think about doing this. >From a schema perspective these things both seem simple, just put the normalized tag in the tags table, and have a join