Displaying 20 results from an estimated 26 matches for "missingtemplate".
2005 Dec 11
7
Catching Exceptions in ActionController
I''d like to be able to catch ActionController::MissingTemplate
exceptions from within ActionControlle, *but*, MissingTemplate isn''t
defined within my controllers!!!
How is that possible - after all, all controller subclass
ActionController, so how are exceptions it defines not there!?
More importantly, how can I do this?
--
Posted via http://w...
2010 Jun 24
0
Rails3: render_to_string of a .html.erb when request is a json request raises MissingTemplate error
...OST'')
In the controller I do:
render :json => { :success => true, :p => render_to_string(:partial =>
''some_partial'') }
Then the ajax result handler replaces the row with the data from the
json result.
This is 100% functional code in rails 2.3.8, but raises
MissingTemplate exception:
ActionView::MissingTemplate (Missing partial employees/
employee_list_row_data with
{:handlers=>[:haml, :builder, :erb, :rjs, :rhtml, :rxml], :formats=>[:json, :js, :"*/
*"], :locale=>[:en, :en]} in view paths ...
So it seems that the requested formats are used to se...
2010 Apr 10
5
Rendering a Partial as an Alternative
Suppose that I want to have a block of default content within a
template that is replaced with the content of a specific partial only
if that partial exists. Obviously there is the brute force approach
of simply rendering the default content unless the relevant partial
file exists in which case the relevant partial is rendered instead. I
suspect that there may be a more elegant way to skin this
2010 Mar 25
0
Rails 3.0 + haml render partial ActionView::MissingTemplate
I''m upgrading one of my apps to rails 3.0
I get this error:
ActionView::MissingTemplate
Missing partial /layouts/header with {:formats=>nil} in view path
for:
= render :partial => "layouts/header"
the file is in views/layouts/header.
From the error message, it looks like it appends an absolute path: "/
layouts/header"
Anyone has seem this problem when upgr...
2011 Nov 24
2
This is not the error: ActionView::MissingTemplate
...essing by RubyamfController#gateway as */*
Processing by ProjectsController#templates as */*
←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT `projects`.* FROM
`projects` ←[0
m
Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms)
Completed 500 Internal Server Error in 267ms
ActionView::MissingTemplate (Missing template rubyamf/gateway with
{:handlers=>[
:erb, :builder, :coffee], :formats=>[:html, :text, :js, :css, :ics, :csv,
:xml,
:rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :amf],
:locale=>[
:en, :en]}. Searched in:
*
"C:/work/Flex-Planner/schneider-planne...
2006 Mar 06
0
Weird MissingTemplate error in production only
Hi Folks!
I''ve been using Rails for more than a year now and I''ve been
struggling with a very strange issue since last week. My Rails app
won''t render any template when running in production environment.
All actions (even the default behaviour when the action is left empty)
will fail in assert_existance_of_template_file.
If I force the full absolute path down the
2009 Jan 04
3
Missing Template with edge Rails (2.3)
After freezing edge rails, all my controller examples are failing with
MissingTemplate errors.
e.g., "Missing template attachments/create.erb in view path app/views"
Trying to actually render the views gives me the same error.
I noticed I can fix most of them by using respond_do but I usually
never use it. I almost always only need to respond to one format in
one action s...
2012 Sep 23
6
Missing template projects/index, application/index ?
...getting a routes issue "No route matches [GET]
"/projects" when going to projects when I have root :to => "projects#index"
defined in my routes file.
Any idea?
1) Creating Projects can create a project
Failure/Error: visit ''/''
ActionView::MissingTemplate:
Missing template projects/index, application/index with
{:handlers=>[:builder, :coffee, :erb], :locale=>[:en], :formats=>[:html]}.
Searched in:
* "/Users/bradwrage/webapps/ticketee/app/views"
# ./spec/integration/creating_projects_spec.rb:4
Finished in 0....
2010 Nov 04
0
Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
...uot; and assume the current controller.
>
> Here are a few of the trials and results:
>
> *html_to_save = render_to_string(:action => "/comparisons#display",
> :layout => "application")*
> *returns* (in addition to a deprication error)*:*
> ActionView::MissingTemplate: Missing template /comparisons#display with
> {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html],
> :locale=>[:en, :en]} in view paths
> "/Users/DK/Documents/ror/projects/creditcompare3/app/views"
> *
> html_to_save = render_to_string(:action =>...
2012 Nov 27
1
controller not rendering existing js.erb file
...ethod is executed, but rendering is not executed as the template is
stated as missing ..
but it''s there ...
post :search, :locale => I18n.locale, :format => :js, :country =>
"United"
Error: test_should_search_places(Backoffice::PlacesControllerTest)
ActionView::MissingTemplate: Missing template backoffice/places/search
with {:locale=>[:en], :formats=>[:js, :html], :handlers=>[:erb, :builder,
:coffee, :haml]}. Searched in:
and I have a template in my views located at :
views / backoffice/ places / search.js.erb
what could be wrong ? where should I look for a...
2010 Jan 25
1
ActionMailer does not find templates in production mode
Hello everyone,
I am currently struggling with the following issue that only seems to appear
in my production environment:
When attempting to send a mail from an ActionMailer the template location
algorithm does not seem to pick up the corresponding template:
ActionView::MissingTemplate (Missing template
event_mailer/approval_requested_notification.erb in view path app/views):
app/models/event_observer.rb:3:in `after_enter_awaiting_approval''
/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers''
/usr/lib/ruby/1.8/observer.rb:184:in `each''
/usr/...
2006 Apr 18
2
make rails 1.1 code 1.0-compliant
...t;name like :n", {:n => name}])
render :update do |page|
if @exists > 0
page.replace_html ''messages'', "#{params[:person][:name]} exists
in the database."
end
end
end
In particular, I get the following error message:
ActionController::MissingTemplate (Missing template
../config/../app/views/updat
e.rhtml)
So, my question is this: how can I do this in rails 1.0? (My knowledge
of JavaScript is very spotty, but I should be able to understand a
solution.)
I can provide more code (eg. from the view) if necessary.
Thanks,
Eric
--
Posted via...
2011 Jan 15
3
respond_with javascript
...LIMIT 1
Story Load (2.4ms) SELECT `stories`.* FROM `stories` WHERE
(`stories`.`id` = 3) LIMIT 1
SQL (0.4ms) BEGIN
Vote Load (0.7ms) SELECT `votes`.`id` FROM `votes` WHERE
(`votes`.`user_id` = 3) AND (`votes`.`story_id` = 3) LIMIT 1
SQL (1.4ms) ROLLBACK
Completed in 1466ms
ActionView::MissingTemplate (Missing template votes/new with
{:locale=>[:en, :en], :handlers=>[:builder, :rjs, :rhtml, :erb, :rxml, :haml], :formats=>[:html]}
in view paths "/Users/snibble/Projects/Ruby/storychan/app/views", "/
Users/snibble/Projects/Ruby/storychan/vendor/plugins/white_list/app/
views&...
2008 Dec 18
2
Render a view from console
...> nil
>> string = ActionView::Base.new.render( :controller => ''contr'', :action => ''index'', :layout => false )
=> nil
>> string = ActionView::Base.new.render( :file => ''contr/index'', :layout => false )
ActionView::MissingTemplate: Missing template contr/index.html.erb in
view path
>> string = ActionController::Base.new.render( :template => ''contr/index'' )
NoMethodError: protected method `render'' called for #
So, nothing works except :inline templates. I saw a similar solution
like ERB.ne...
2009 Apr 03
7
RJS not rendering correctly when mime-type is 'iphone'
I have an iPhone version of my site, and for some reason none of the
rjs works when viewing the iPhone version. This happens instead:
ActionView::MissingTemplate (Missing template controller_name/
update.erb in view path app/views)
The rjs works fine when viewing the site normally, and it worked when
viewing the iPhone version prior to upgrading Rails to 2.3.2.
Additional info: I have ''Mime::Type.register_alias "text/
html", :iphone'...
2010 May 03
7
rendering images dynamically
Hi,
I have a rails application where I respond to a request by fetching
image urls from various web api calls and need to display them as they
come available. I am able to display all the images once I get them
all, but that causes an unacceptable delay for my user.
One approach I am trying is, from my controller, set an @image
variable, and then pass in a block to the model that retrieves the
2010 Jul 27
7
trouble with remote_form_for & html_update
I have a form that accepts comments and adds them to a list without
refreshing the page.
This is the html:
<div id=''aremark''>
<%= render :partial => ''comment'' %>
</div>
<% remote_form_for :comment, :url=>story_comments_path(@story), :html
=> { :id => ''comment'' } do |form| %>
<h5><label
2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
...s,
:spacer_template => ''shared/list/separator'') ||
t(''user.empty_result'') %>
</div>
============================================================
THE ERROR:
============================================================
ActionView::MissingTemplate (Missing partial users/user_list with
{:locale=>[:en], :formats=>[:json], :handlers=>[:erb, :builder, :coffee, :haml]}.
Searched in:...
============================================================
I think something''s wrong when I try to render a partial inside
another, I tried t...
2008 Mar 17
6
REPOST: fallback layout mechanism
...have several layout
pages (language dependent)available. I want to do a mechanism to fall
back from one language to another default language if such layout
file
is missing. Any chance I can do an is_exist check on the layout? With
my current code I really want to just check it instead of catching a
MissingTemplate error.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group...
2008 Sep 24
0
Rspec, HAML, view testing
Hi all,
Has anybody experience the following problem running testing rspec
against haml views
Attempting to run a view spec
app/view/users/_foo.html.haml
it "should render it" do
render :partial => "users/foo", :locals => template_locals
end
1)
ActionView::MissingTemplate in ''shared/_jar_layout should render it''
Missing templatet users/_foo.html.erb in view path ....
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:85:in `raise_missing_template_exception''
I have tried stubbing the template via
@template.stub!(:...