Displaying 15 results from an estimated 15 matches for "_header".
Did you mean:
header
2009 Aug 13
5
First hit on app takes a long time
...Parameters: {"id"=>"MainPage"}
Rendering template within layouts/application
Rendering wiki_pages/show
User Columns (1.3ms) SHOW FIELDS FROM `users`
User Load (0.4ms) SELECT * FROM `users` WHERE (`users`.`id` = 4)
LIMIT 1
Repopulating the stop words
Rendered common/_header (16.7ms)
Rendered common/_nav (4.4ms)
Rendered common/_search (2.4ms)
Rendered common/_footer (0.6ms)
Completed in 2422ms (View: 134, DB: 2) | 200 OK [http://myserver.com/
wiki_pages/MainPage]
Processing WikiPagesController#show (for 98.218.223.189 at 2009-08-12
20:17:04) [GET]
Parameters: {&qu...
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
...d after having checked the tutorial... How do you resolve
this kind of error. It''s saying current_user is not defined, and it is
supposed to be defined with/Sites/sample_app/app/helpers/
sessions_helper.rb
NameError in Pages#home
Showing /Users/iamme/Sites/sample_app/app/views/layouts/
_header.html.erb where line #6 raised:
undefined local variable or method `current_user'' for #<#<Class:
0x103371258>:0x10336be70>
Extracted source (around line #6):
3: <nav class="round">
4: <ul>
5: <li><%= link_to "Home", root_pat...
2010 Nov 04
9
Delete action is not working and redirects to edit action
Hello,
i have a strange problem here. I have made a teacher controller using
scaffold. All actions work fine but the delete does not. When i click
the delete link, it redirects me to the edit of this teacher. I have
restarted the server and i have tried in firefox (i use chrome) but
problem still remains. Here is the code from my view.
<%= link_to(image_tag("/images/
2010 Jul 02
6
making something available application wide
I''d like to display a banner on every page. Ultimately I''ll be tweaking
which banner is displayed via different controllers but initially I''d
just like to set a single banner application wide and display it in my
"_header", a partial I include in all layouts.
I''ve got a BannerAdvert model, simple. If I''m in my welcome controller
index action I can simply do,
@banner_url = BannerAdvert.first.url
in my _header partial (view) I display the url, works fine.
-----
BUT - my header is called fro...
2007 Nov 23
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section.
They live in app/views/shared/_header.rhtml & _footer.rhtml.
They are referenced by app/views/layouts/application.rhtml as one would
expect:
<div id="header">
<%= render :partial => ''shared/header'' %>
</div>
They contain many lines like this:
<a href="/classifies/ca...
2006 Apr 05
1
processing code within a partial
I''m doing layouts and I have a question on how to process <%= ... %>
tags within partials.
I have a standard.rhtml file with :
<div id="header"><%= render_partial "layouts/header" %></div>
and my _header.rhtml contains a tag as such:
<link_to "Categories", :controller => "categories", :action=> "list" %>
Yet when I run my page in the browser, all I see is the text contained
in the header and it looks like it''s not being processed.
Any help?
--...
2006 Mar 28
0
using ''onchange'' option in select from a partial to update a
I''m new to Rails and don''t totally understand some of the control
behavior of ActionController. Here''s my problem: I have a _header.rhtml
partial view that is supposed to be the header (naturally) on a
main.rhtml view (i.e., main.rhtml calls the header partial via the
render method). In the header view is a select field that I''d like to
have refresh the main.rhtml view (altering the view based on the
selected valu...
2006 Apr 25
1
protection needed?
...ally need to protect a coerced object if I
immediately access its value and don't access the object anymore. I
tried to find out by looking into the R sources but didn't find
something similar.
It's about the variable _skipLines in the call "function ReadXls(
_file, _sheet, _type, _header, _colHeader, _skipLines: pSExp ): pSExp;
cdecl;".
I did:
skipLines:= riInteger( riCoerceVector( _skipLines, setIntSxp ) )[0];
but am unsure if I would have to something along:
skipInt:= riProtect( riCoerceVector( _skipLines, setIntSxp ) );
skipLines:= riInteger( skipInt )[0];...
2010 Nov 19
0
Wickedpdf
...make copies of them with a view type of .pdf.
So for show.html.erb i need to make a show.pdf.erb, that makes sense.
But if the show file has lots of partials then i need to make copies
of them which i dont need to as i wan tthem to stay the same.
So if i have a header partial i need to have both _header.html.erb and
_header.pdf.erb and so on......
Any ideas how i can avoid having to make a copy of each partial??
JB
--
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-/JYPxA39Uh5...
2006 Apr 15
0
respond_to issue
...end
end
end
I have two views.. the rjs template (login.rjs) and login.rhtml
It seem''s as if login.rhtml is rendering on all requests:
Rendering within layouts/application
Rendering account/login
Rendered account/_login (0.00124)
Rendered account/_login (0.00089)
Rendered shared/_header (0.00070)
Rendered shared/_footer (0.00070)
Completed in 0.01152 (86 reqs/sec)
Any ideas?
Thanks,
Raja
2006 Feb 25
2
SSI like function in Rails?
Hey
Im slowly learning ruby and rails... still having some problems with
grasping the basic concepts though.
How do I include a common html snippet in some of my views? (The snippet
exists in two different flavors, I want to include either one depending
on what type of user (admin/others) is requesting the page)
I have tried the normal SSI include tags, but my WEBrick server cant
handle
2011 Sep 14
0
Overload assets/views of a mountable engine?
...would like to overload some the files.
Example:
Let''s consider a mountable blogging engine, which would be mounted in
whatever application to get a blog but the engine should look exactly like
the website so I would like to overload some asset files as well as some of
the views (like the _header and _footer partials rendered in the layout)
Is that possible with mountable engines ?
Regards,
Wael Nasreddine
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Waêl Nasreddine
TechnoGate <http://www.technogate.fr/>www.technogate.fr
mobile : 06.41.68.38.35
agence : 09.70.444.236
~~~~~~~~~~~~~...
2006 Aug 14
3
php include() equivalent
Is there an equivelent ruby function that is similar or exactly the same
as the php include() function? I would like to be able to include a
header for my RoR web application that refers to a url. Thanks!
-Gilles
--
Posted via http://www.ruby-forum.com/.
2007 Jul 05
6
mocking methods in the controller.
Hi,
I''m very new to rspec so please be patient with me.
I''ve tried to take some of my tests out of the controller specs to check for
things that are rendered.
This has not worked so well, since my views have the controller method
current_user
in quite a few places.
Is there any way that I can define this so that my views will be executed?
Will this same thing occur for all
2007 May 21
1
[PATCH] Add support for ldns
...gt;rri_nsigs > 0) {
+ rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo));
+ if (rrset->rri_sigs == NULL) {
+ result = ERRSET_NOMEMORY;
+ goto fail;
+ }
+ }
+
+ /* copy answers & signatures */
+ for (i=0, index_ans=0, index_sig=0; i< pkt->_header->_ancount; i++) {
+
+ rdata = NULL;
+ rr = ldns_rr_list_rr(ldns_pkt_answer(pkt), i);
+
+ if (ldns_rr_get_class(rr) == rrset->rri_rdclass && ldns_rr_get_type(rr) == rrset->rri_rdtype) {
+ rdata = &rrset->rri_rdatas[index_ans++];
+ }
+
+ if (rr...