Displaying 20 results from an estimated 1000 matches similar to: "rendering in after_filter"
2006 Mar 10
8
XML Databinding frameworks
Are there any XML databinding frameworks available for Ruby / Rails, such as
Castor or JaXB for Java?
Also are there framework such as Apache Axis for WebServices for Rails or
Ruby?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/3cf0cfd3/attachment.html
2006 Jun 12
8
Input/output error on linux
Hi,
I''m trying to use mongrel 0.3.13 with Rail 1.0
Believe it or not, on OS/X it works well for weeks at a time. On
linux I''m getting Input/output errors after anything from a few hours
to days, never more than a week. Once they start they don''t stop.
The only pattern I''ve seen is that it always (seems) to happen while
rendering an rhtml file.
2006 May 07
3
Character Encoding
Hi,
I''m sure I''m doing something dumb, but...
I have an application that dynamically produces UTF8 encoded html
exclusively. This application works using webrick without a problem.
When using Mongrel 3.12.4 it looks as though the encoding is lost and
garbage appears on the string. I suppose this could also be a double
encoding, but personally, I can''t tell the
2006 Sep 22
6
Using after_filter to control rendering on actions
I have a common failure page that I may need to render to upon failing
some test that occurs in an after_filter method.
I''d like to use the after_filter to take over the control of the
rendering, like so:
def test_for_validity
some_boolean = my_test
return render(:action => ''disqualified'') unless some_boolean
@success_controller ||= controller_name
2006 Feb 20
3
Rewriting with an after_filter
All -
I''m completely new to RoR and also new to programming in an MVC
structure...
The Pragmatic Programmers guide to Rails says, temptingly:
"After filters can be used to modify the outbound response, changing the
headers and content if required. Some applications use this technique to
perform global replacements in the content generated by the controller?s
templates (for
2006 May 11
2
Adding user name to production log?
All,
In the production log I have entries like:
Processing OpportunityController#new (for 68.213.19.251 at 2006-05-11
10:18:36) [GET]
Session ID: 345b455a2a36af8814081c388d8726f1
Parameters: {"action"=>"new", "controller"=>"opportunity"}
Rendering within layouts/opportunity
Rendering opportunity/new
Completed in 0.02281 (43 reqs/sec) |
2007 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi,
I''m using backgroundrb 0.2.1 in a production environment and for most
parts I''m very happy. We are using it to do some heavy video editing on
the server side and it works great except that under, what seems heavy
load the below problem happens intermittently.
The problem has only happened 5 times out of over 500 runs by our
backgroundrb worker.
This is the code in our
2006 Oct 07
5
How to proceed with incorporating Ferret?
Hi,
I''ve listened in to this mail list for quite a while now but not
doing anything with Ferret until I was ready to incorporate it. I''ve
used Lucene for years, but not Ferret.
I downloaded and installed the ''bleeding edge'' version (lets call it
0.10.9.1). There appears to be a significant re-working of the API
happening. It all looks good. But there
2006 Mar 18
2
in_place_editor change request...
Hi,
How do I make a request to the Rails team to include a line something
like:
js_options[''savingText''] = %(''#{options[:saving_text]}'') if options
[:saving_text]
in the in_place_editor method?
script.aculo.us supports the ''savingText'' option to control the text
displayed while saving after an in-line edit. Having the ability to
2006 Jan 02
8
RoR or Java for community portal?
Hello Ruby users,
let me introduce myself briefly - I am a student at OvG University
Magdeburg, Germany, and I hope to get some advice for a nonprofit
student community portal I am involved with, just in case somebody is
interested: http://www.webuni.de, having around 3000 active users.
Development is done on a voluntary basis by members of the community,
mainly IT students with too much
2009 Jul 14
1
How to add after_filter-style render
Hello
I would like to execute specific action rendering something into page
after each of my ajax calls. In example I would like to update some
div or display an alert.
How I imagine it could work is as follows
class ApplicationController < ActionController::Base
after_filter :do_something_after_each_ajax_call
def do_something_after_each_ajax_call
if request.xml_http_request?
2005 Dec 21
3
Object graphs
Guys,
I''m designing an application currently that will ultimately be implemented
in either Rails or php5 (most likely Rails).
While I''ve coded many PHP (pre-5) applications in the past, OO support was
so weak that my OO designs were never truly divorced from the limitations
of the language, thus I never had to consider this problem.
The question is: how does Rails (and how do
2006 May 11
5
crating a ajax datagrid
hi,
Im looking to build a live data grid, where you can add delete rows
using dhtml.
and was just wondering if anyone is aware of any plugin''s taht may help
me.
Ive found this example but if anyone is aware of any other plugin''s
please let me know
http://unspace.ca/datagrid/update
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 May 12
1
best list/forum for prototype.js?
Hi,
Where is the best place in the net to discuss the prototype.js
library? I have some questions that are purely prototype.js questions
and unrelated to rails.
Thanks,
Peter
2006 Apr 07
2
Prototype 1.5.0_rc0 breaks my Form.serialize
Cheers,
Prototype 1.5.0_rc0 breaks backwards compatability with this diff in
Form.Element.Serializers:
http://dev.rubyonrails.org/changeset/4147
I have explicit value="" in my options and now I get the text submitted.
E.g.
<select id="foo">
<option value="">Please select a value</option>
</option value="1">Nr.
2006 Sep 06
2
.htaccess in public and adding password protection
While my site is in development I wish to add basic password protection.
At the moment my .htaccess looks like this:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd
AuthGroupFile /dev/null
require valid-user
.htpasswd exists and has an entry, yet I do not get a password prompt?
Does Apache Auth work for dynamic resources or only static
2006 Jul 02
3
Mongrel Randomly getting TERM
Has anyone ever experienced this problem? Every 12-24 hours *one of* my
mongrel processes gets a TERM signal and quits.
There is all I get in my mongrel log..
** Mongrel available at 0.0.0.0:8003
** TERM signal received.
And my rails-log is silent too. No request starting. Just the end of a
successful request and then nothingness.
The other processes are doing just fine and stay up for good.
2006 Feb 19
5
can you give a answer?
when i tail -f my log:
i find this:
"Completed in 0.00233 (428 reqs/sec) | Rendering: 0.00005 (2%) | DB:
0.00118 (50%)"
i am sure, this request didn''t access DB. but why here DB is (50%)
it''s log wrong or my fault?
regards
--
Posted via http://www.ruby-forum.com/.
2006 May 11
2
pages in /public cant find CSS
Hi everyone,
I have a rails project that I''ve been serving via WebBrick at work,
and its been working fine (low traffic). For the last few days I''ve
been trying to deploy it under Apache which already serves our groups
static and PHP pages. I have the dynamic rails part working now, but
am having problems with stylesheet references in static pages. My URL
using WebBrick was (and
2006 May 25
4
Driving Rails from disk instead of SQL.
Skipped content of type multipart/related-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060525/eac5b0af/attachment.bin