Displaying 20 results from an estimated 21 matches for "actionviewerror".
2005 Dec 17
0
Re: ActionViewError in Depot App after Upgrading to 1.0
...; works as expected.
>
> Calling the url in webrick:
>
> 127.0.0.1 - - [16/Dec/2005:17:35:58 CET] "GET /admin/ship HTTP/1.1" 500 0
> http://localhost:3000/admin -> /admin/ship
>
>
> i get the following error and a blank page in the browser:
>
> ActionView::ActionViewError (No rhtml, rxml, or delegate template found
> for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
> /lib/action_controller/templates/rescues/template_error.rhtml):
> /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
> `pick_template_extension''
>...
2006 Jan 15
7
Include extra partial in layouts
Hi all,
Does anybody know how to include a partial (next to @content_for_layout) in a
layout file?
I''m looking for a something like @partial_for_include => ''filename'' in my
layout files. So a linked .rhtml file gets picked up from within a layout
file. All my layout files (4 at the moment) have a <div class="navright">
tag, so one change in the
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
...''
body[:content_for_layout] = render(:file => method_name, :body =>
body)
ActionView::Base.new(File.join(template_root, ''mailer''), body,
self).render(:file => layout)
end
end
the last line is not accepted when running rails 2.0 => ERROR
ActionView::ActionViewError (Due to changes in ActionMailer, you need to
provide the mailer_name along with the template name.
render "user_mailer/signup"
render :file => "user_mailer/signup"
If you are rendering a subtemplate, you must now use controller-like
partial syntax:
render :partial =>...
2008 Mar 04
2
Action Mailer throwing underscores on template name
...e recently run into a problem with one of my applications that
refuses to send emails using ActionMailer.
Looking at the log, it become obvious what''s happening, the system is
looking for templates with underscores at the end. Notice the
exception_notification_ .
For example:
ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template
found for exception_notification_ in /var/rails/nick_warren/releases/
20080303165433/vendor/plugins/exception_notification/lib/../views/
exception_notifier):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/
base.rb:401:in `find_template_ex...
2006 Aug 01
2
actionmailer cant find template in backgroundrb
...r < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No rhtml, rxml, rjs or delegate template found for daily_report -
(ActionView::ActionViewError)
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:387:in
`find_template_extension_for''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:321:in
`pick_template_extension''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view...
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):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_view.rb:10:in
`pick_template_extension''
/usr/lib/rub...
2005 Dec 18
3
undefined local variable in partial
...rently being rendered. This variable
is available only inside the partial template.''''
So why do i get the error above??
By the way: is it right that i get a blank page or should i see an
error-page from rails?
scrolling down my development.log is see the following:
ActionView::ActionViewError (No rhtml, rxml, or delegate template found for
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
/lib/action_controller/templates/rescues/template_error.rhtml):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
`pick_template_extension''
Any hints?
Regards,
To...
2006 Aug 07
9
problems with ActionMailer
...ef mail_prueba(recipients)
@recipients = recipients
@from = "myself at mydomain.com"
@subject = "test email"
@sent_on = Time.now
@body = {}
end
If I do this, I get an exception:
No rhtml, rxml, rjs or delegate template found for mail_prueba -
(ActionView::ActionViewError)
I had to put a render :file at the end of the mail_prueba function,
and even that way the email is not sent... Any ideas on what could be
the problem?
btw... this is the code in the controller that creates the worker:
def email_prueba
MiddleMan.new_worker(:class => :mailer_worker, :arg...
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here:
http://wiki.developers.facebook.com/index.php/Facebook_Styles
I included testing and comments. I hope you find it useful.
Curiously, it''s really a small extension of FBML.
Richard
-------------- next part --------------
Index: test/rails_integration_test.rb
2006 May 24
1
ActionMailer (Action Mailer) Template not found? Help!!
..."Notifier" -- in fact I have been using the EXACT
code from the "Agile Development With Rails" chapter on "Sending
E-Mail", pp. 411-416, except for my names (mailer named "Notifier",
emailer method named "report". And what I get is:
ActionView::ActionViewError in <my_controller>#<my_calling_method>
"No rhtml, rxml, rjs or delegate template found for report."
I generated the files with "script/server mailer Notifier report", and
there is indeed a template: apps/views/notifier/report.rhtml
I am calling it with:
email...
2006 May 30
2
No rhtml, rxml, rjs... problem with Action Mailer, again
Hi all
I have seen a lot of people writing my same problem but I haven''t found
the solution yet. This is the problem:
"ActionView::ActionViewError in Periodico#index
No rhtml, rxml, rjs or delegate template found for..."
when trying to send email through action mailer.
I have created the Notifier.rb model (in app/models/ folder)
def signupthanks(user)
# Email header info MUST be added here
@recipients = user.email...
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
...you for your request''
@recipients = ''''
@from = ''webserver@illinoisatplay.com''
@sent_on = sent_at
@headers = {}
@body[''name''] = formparms[:from_name]
end
end
---
The error I get is this:
ActionView::ActionViewError in Page#send_request
No rhtml, rxml, or delegate template found for sendrequest.rhtml
I REALLY DO have a a rhtml file at views/info_mailer/sendrequest.rhtml
it contains the following:
---
Dear <%=@from_name %>,
Thank you for your request, we will respond shortly!
---
Any ideas? .. whe...
2005 Dec 16
0
Error in Depot App after Upgrading to 1.0
...call the admin/ship method. All other methods works
as expected.
Calling the url in webrick:
127.0.0.1 - - [16/Dec/2005:17:35:58 CET] "GET /admin/ship HTTP/1.1" 500 0
http://localhost:3000/admin -> /admin/ship
i get the following error and a blank page in the browser:
ActionView::ActionViewError (No rhtml, rxml, or delegate template found for
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
/lib/action_controller/templates/rescues/template_error.rhtml):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
`pick_template_extension''
/usr/lib/ruby/gems/1....
2005 Oct 02
1
rendering if template exists
...ut this into a
component because over the time I''ll be integrating more logic into
the component but for now all I want is to render a template if it
exists.
Can anybody recomend how to test the existence of a template and
render if only it exists?
The error I get is
ActionView::ActionViewError in Sidebar/related#display_box
No rhtml, rxml, or delegate template found for sidebar/related/
_products_index
<%= render :partial => "#{@current_controller}_#{@current_action}" %>
I was thinking to catch the exception but then I would have to write
this in the view code of...
2005 Oct 10
0
[BUG ??] 'uses_component_template_root' problems with implementation in component
...app/views/layouts/application''
# will show the login box html
def index
end
end
PROBLEM::
When I visit [ http://localhost:3000/ ] the shared header view shows
up fine, but when I then try to visit the [ http://localhost:3000/
admin/login ] URL I get this Error:
ActionView::ActionViewError in Admin/login#index
Showing /../app/views/layouts/application.rhtml where line #2 raised:
No rhtml, rxml, or delegate template found for shared/header
Why is that ? and I have tried every other possibility that I can
think of, such as [ render :file, :partial, etc ] but it doesn''t...
2007 Sep 15
0
Better render_if_exists
...partial
template called _optional_fields_user which I''d like to load, but
_optional_fields_product doesn''t exist and I''d like to use the same code
to load both.
So I build a little helper :
def render_if_exists toRender
begin
render toRender
rescue ActionView::ActionViewError
end
end
and I call it :
<%=render_if_exists :partial =>"optional_fields_#{@element.className}"%>
Everything works fine but I think it''s ugly to do it this way, would
anyone have anything better?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~...
2006 Jan 13
10
[Announcement] Google: Evil or Not?
"Google: Evil or Not?" is my first Rails webapp and I''ve just made it
public at http://evilornot.info
Do you still believe the ?Do no evil? Google mantra? Do you think
Google Book Search, the AOL deal, and Larry and Sergey?s 767 point to
Google losing it?s pristine morality and turning over to the dark side?
Now you can discover what the world thinks and contribute your
2005 Dec 19
1
Preserving fallback with RJS
...plate_path)
match.first
elsif erb_template_exists?(template_path): ''rhtml''
elsif builder_template_exists?(template_path): ''rxml''
elsif javascript_template_exists?(template_path): ''rjs''
else
raise ActionViewError, "No rhtml, rxml, rjs or delegate
template found for #{template_path}"
end
end
def render_file(template_path, use_full_path = true, local_assigns = {})
@first_render = template_path if @first_render.nil?
if use_full_path
template_extension = pick_t...
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following
error
2)
NoMethodError in ''/games/_game.rhtml should show game name''
undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`matches?''
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone,
Like so many other here, I too am new to Rails (and Ruby), and so far
it''s been a great experience. I haven''t been able to get around one
problem though. When trying to use the mailer, I recieve an error like
this:
ActionView::ActionViewError in Tell_friend#send_email
No rhtml, rxml, or delegate template found for send_to_friend
The scenario is this:
A form on a page is submitted to a controller "tell_friend", action
"send_email".
In tell_friend_controller.rb''s send_email(), mail is sent like this:
TellF...