Displaying 20 results from an estimated 200000 matches similar to: "How to use one error page for the whole project"
2007 Sep 13
3
Problem on installing rubyworks on centos5
hi all,
I have met a problem on installing rubyworks on centos5. I have
checked the install steps from here:
http://rubyworks.rubyforge.org/installation/centos.html
when running the command: sudo yum install rubyworks, i got the
following errors:
----------------------------------------------------------------------------------------------------------------------
--> Running transaction
2006 May 10
2
Redirect whole page from AJAX action that updates a div
Hi,
I am calling an action via AJAX to update a div. The action needs to
redirect the page in under certain circumstances. However, if I just use
"redirect_to" in the action then of course what happens is that the page
I want to redirect to replaces only the div, not the entire page, and I
get messy nested layouts.
Is there a way around this? Can I redirect the entire document from
2008 Jan 03
1
Mongrel stops to loading the page in browser
Hi all,
I have a problem with mongrel-1.1.2 running with Apache Apache/2.0.61
and MySQL 5.0.45 on FreeBSD 6.1.
I''m developing my application with InstantRails that uses Mongrel and
everything is working great. I have about 30 shops in a table. I also
store the logo images (png files) in the table for each shop. Under
Windows/InstantRails everything is working correct.
When i however
2011 Nov 01
2
xenpaing: one way to avoid paging out the page, when the corresponding mfn is in use.
Hello,
Recently many advanced memory mechanisms are introduced into Xen. One problem we found is the conflict between p2m query and setting.
For example, backend drivers always map domU’s page to its own space, during the mapping procedure, situations as follow may happen,
when mfn is obtained by gfn_to_mfn(), this mfn is likely to be paged out.
first case:
grant mapping
2006 Apr 15
6
Two forms for two models - one page
I''ve got two forms for two different models on the same page. What I
want is for one of the forms to return you to the same "new" page and
not clear the data in the other form. I was hoping it would be as
simple as render :action => ''new'' but no such luck.
Any thoughts?
Thanks,
Adam
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
Valitation only on one page?
Hello there,
I have a "user" object essentially that contains address information
that gets stored in the database. The user can sign up and go through
the whole page before he needs to enter that information which is
associated with a billing process. Without having to write some odd
validation based on the request_uri and passing it to a custom
validation method is there any way
2006 May 09
3
How to transfer variables from one page to another page ?
Hi,
In my application I want to tranfer a variable (store_id) from one page
to next without putting it into session. How should I do this?
Is there any way to transfer variable from one to other page using
methods other than sesion?
Thanx
Prash
--
Posted via http://www.ruby-forum.com/.
2006 Feb 17
1
A unique 'click to call' project - Could use some advice <--one thing I forgot
In the example I posted previous, there is an obvious gaping security hole,
it would be trivial for someone to read the querystring and exploit it to
make free phone calls, spoof caller ID (if you allow the CallerID to be set
with a QueryString value), etc. You want to make damn sure that the URL is
not publicly accessible or somehow obsfucate the querystring, or use POST.
In my case, I
2006 Jan 05
8
AJAX to submit form, but reload the whole page
I''m using ROR 1.0 and the included prototype.js to do some AJAX stuff.
I''m using the form_remote_tag to submit a login form using AJAX.
So, any error/failed login will be displayed using AJAX. But, for
successful login, I would want it to reload the wholepage, not just
update the <DIV>.
How can I achieve this?
--
Posted via http://www.ruby-forum.com/.
2006 Oct 09
4
error message on the redirected page
def edit
@product = Product.find(params[:id])
end
def update
@product = Product.find(params[:id])
if @product.update_attributes(params[:product])
flash[:notice] = ''Product was successfully updated.''
redirect_to :action => ''show'', :id => @product
else
render :action => ''edit''
end
end
when errors happen, to avoid
2006 Mar 06
1
rubynuby == two views on one page?
This question may be one of those monumentally rtfm/do some more reading
sort of affairs.
At the moment though, it is not apparent to me how one would go about
creating a page that has two very separate rails views (say, a forum,
and a "sign up for email notification" view) on the same page.
If anybody knows of a tutorial that covers this or can explain why it''s
not a
2006 Apr 25
0
How to manage one to many within application.
Hi,
I have an application with a customer model, and an address model. A
customer has a one to many relationship with an address. I currently
have an add new customer page, that incorporates an "add address"
button, which places a helper form within a div using the link_to_remote
function. I can click the add address button multiple times, and it will
add multiple address
2005 Oct 15
0
Making link_to use the routes I define
Hi,
In my rails application I have a controller (message) that handles all
top-level directory requests, and maps it to a list view.
How can I use link_to to link to the URLs generated by this route?
map.connect '':forum_url_name/'', :controller => ''messages'', :action => ''list''
Then I have a (forum) controller that lists all its
2006 Jul 26
0
render :update issue getting whole new page
Hey,
I have:
render :update do |page|
page.alert(''none'')
end
The problem is that if this was in the method "balloon" and controller
"create", then it take me to a blank page with "alert("none");"
It doesnt render in the window that it was called in.
This happens with other commands as well such as call and replace_html.
Any
2006 May 17
1
rails will page cache all actions but one....why?
I have page caching turned on for all actions in my controller
(pragmatic is it''s name). Rails will cache each actions except for
one.
I''ll list the three ways this action can be called. It is only cached
one of the ways. Can somebody help?
http://www.recentrambles.com/pragmatic/index - This will not cache
httphttp://www.recentrambles.com/pragmatic This will not
2006 Mar 03
4
Must one be a web page designer to make use of RoR?
Hey guys,
I''m new to the world of web site development. Although I''m in the
process of learning RoR, I''m not a graphics artist nor a web developer
or web site designer. With that being said, does anyone have any
suggestions for tools to use to create the actual interface for a web
app based on a RoR framework? Obviously the default output of RoR is
fine for
2006 Jul 21
0
Ajax page.replace_html model validation errors
I have the following setup:
A model: that validates using helpers like: validates_presence_of, etc..
A view: called ''new'' which renders a partial
The partial: _form which has error_messages_for and a
form_remote_tag , submit_tag and end_form_tag
An action ''create'': that gets executed via the submit_tag in the
_form and which
in case it can''t
2010 Dec 02
4
how to redirect to ERROR page /500.html in rails
I setup an application in rails while performing some action am getting
below error
Status: 500 Internal Server Error Content-Type: text/html
500 Internal Server Error
page.
using Rails 2.2.2
I want to redirect the user to /500.html
so that they get the error page that looks like our application,.how
could achieve this ??
--
Posted via http://www.ruby-forum.com/.
--
You received this
2006 Jul 24
0
Ajax page.replace_html model validation render partial errors
Hi; I have the following setup:
A model: that validates using helpers like: validates_presence_of, etc..
A view: called ''new'' which renders a partial
The partial: _form which has error_messages_for and a
form_remote_tag , submit_tag and end_form_tag
An action ''create'': that gets executed via the submit_tag in the
_form and which
in case it can''t
2007 Apr 09
0
How to render my own error pages correctly?
Hi there,
I am trying to get my own error pages (404 for example) displayed
correctly.
I raise an error in my controller:
raise MyException.new, "Bad thing."
Therefore I defined:
class MyException < Exception
end
Furthermore I catch that in application.rb:
def rescue_action_in_public(exception)
case exception
when MyException
logger.error("404