Displaying 20 results from an estimated 800 matches similar to: "controller instance methods available in rhtml?"
2007 Mar 11
2
logrotate, syslog, and chsh
I'm noticing that logrotate's default configuration for rotating /var/
log/secure and /var/log/messages partially fails if root's shell is
set to /bin/tcsh (via chsh). (Running on CentOS 4.4;
logrotate-3.7.1-5.RHEL4).
What seems to be happening is that the logrotate.d/syslog postrotate
command runs:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
2003 Apr 23
3
PBX Console
Hi,
I've been looking into the one bad thing about * which is there's no
practical solution to running a console. You know the kind where
you have rows of buttons each representing an extension. You press
the button of the extension you want to transfer the call to, and
it's done.
There's the beginnig of GUI version but it's going to eat resources
for running X which
2006 Aug 12
2
Layouts: application.rhtml v. mycontroller.rhtml
I was trying to be all DRY and standardize my layouts to one file and
made an application.rhtml. There was no application.rhtml at all
before.
So I renamed all my controller layouts to .txt and then tested. I got
empty pages.
I found some issues with Login/UserEngine and application.rhtml, but
nothing that looked like this behavior. Is routing messing me up? It''s
as if
2005 Mar 25
27
Sendmail vs. Postfix
Hah!!! This list is just too calm and mundane. The only thing we argue
about is the ''announce'' list vs. the ''user'' list. ;) So, it''s
springtime! I''m seeing all the regularly scheduled ''oil'' threads on my
motorcycle lists and thought "oh what the heck, lets get the ''oil''
thread going over on the CentOS
2007 Jan 25
1
render rhtml templates in worker
I''m trying to make a worker that will render a large page to a file,
very similar to what rails'' builtin cacheing does except with the
rendering done outside of rails.
The only advice I''ve found is to use
ActionController::Integration::Session.new but this doesn''t seem to
allow setting session variables the way the functional tests do. Is
there a way to
2006 Aug 01
0
calling controller method for .rhtml file inside directory
Im trying to call a method for an rhtml file that inside a directory.
For example, I have views/some_view/directory_in_view/test.rhtml file.
How do I access this in the controller, I cant have a method called:
def some_view/directory_in_view
end
Do I just have to do a redirect?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 01
1
Missing flash.swf in .rhtml page in WEBrick dev environment?
So I''m trying to create a dashboard that displays data pulled in through
RoR. Some data populates table rows and other data I''m trying to feed
into an Adobe Flash swf file.
I have the path correct to my swf file (I can it being accessed in
Safari activity window) but it''s not rendering. When I try to access the
file directly within the :3000 environment I get
2006 Aug 03
2
pagination with customer list.rhtml
(To preface this - you can just imagine I am making the cookbook from
the Rolling with Ruby on Rails tutorial)
I have made a customer list view (list.rhtml), so that I could include
attributes from multiple database tables. This works fine, however, the
list page no longer paginates (i.e. does limit the item list to 10 items
at a time, with a 1, 2, 3... links at the bottom)
I am trying to
2006 Aug 07
0
select da tabella in _form.rhtml
Ben trovati.
Ho questa _form :
<%= error_messages_for ''requirement'' %>
<!--[form:requirement]-->
<p><label for="requirement[structure_id]">Struttura</label><br/>
<%=
@structures = Structure.find(:all, :order => "nome").map {|f|
[f.nome,f.id] }
select(:structure, :id, @structures)
%>
<p><label
2006 Aug 09
3
Deployment: Segregating static files from RHTML
All,
I am deploying on a production system using Apache/fastcgi.
I would like Apache to take care of all of my static files and
dispatch.fcgi to take care of all of my Ruby templates.
In order to achieve this separation, do I need to set up two vhosts in
Apache, one to serve static content and one to serve dynamic content?
Has anyone done this in production and can point me to the right
2006 Aug 18
0
Why does scaffolding''s list.rhtml use "foo.send(column.name)" ?
HI all,
I"m using 1.1.6 script/generate scaffolding.
Why does the view/foos/list.rhtml use "foo.send(column.name)" to
display the contents of each column?
I had to change this to "foo[column.name]" to get the display right in
a couple of models. Specifically, one model has a column named
''display'', is that conflicting with something internally to AR ?
2006 Aug 18
2
printing out text in .rhtml files
Hi all,
In php i can do something like this:
<?php
print ''hello'';
print '' world'';
?>
Is there an equivalent to print in eruby, or do I have to use multiple
<%= %> lines?
Thanks!
Jack
p.s. I tried posting this before, but I don''t see it. Sorry if this is a
repeat.
--
Posted via http://www.ruby-forum.com/.
2006 Nov 04
0
link first page html to other rhtml
I want to have a page that will be the table of contents. I will access this page with
http//localhost:3000. It will contain the table of contents. This toc will point to the pages created by the rails such as the show.rhtml. I am having problems defining the link in the table of contents.
Thanks for any help!
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Nov 04
0
link to rhtml page from html
Hi,
I am having trouble linking from the html page to a rhtml page.
Any suggestions will be greatly appreciated.
JIm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060823/7d872c4c/attachment-0001.html
2006 Nov 04
1
trouble linking from the html page to a rhtml page
Hi,
I am having trouble linking from the html page to a rhtml page.
Any suggestions will be greatly appreciated.
JIm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060824/b197ad2b/attachment-0001.html
2006 Jul 05
2
Vim and .rhtml
So is there any hope of someone creating a vim syntax file for ERb,
particularly RHTML? I''ve been using mason for the filetype which is close,
but imperfect. It might be a good starting point. I''m considering doing it
myself, but I thought I''d check to see if anyone else was already on the
job.
--Greg
2006 Jul 20
2
Why is my rxml view being wrapped by the rhtml template in views/layouts?
Why is my rxml view being wrapped by the rhtml template in views/
layouts?
I was experimenting with REST, I had a nice little test program with
one table: ''resources''. Here''s what the show method looks like:
def show
@resource = Resource.find(params[:id])
respond_to do |accepts|
accepts.html
accepts.xml
end
end
I have a show.rhtml
2006 Jul 20
3
Output to browser in .rhtml templates
Hi!
In .rhtml template I''m trying to create some output, which should be
sent to browser. But this is inside <% %> not <%= %>, so how can it be
accomplished? Default output is directed to log file, so puts "output"
does not send to browser but to log file...
--
Posted via http://www.ruby-forum.com/.
2006 Jun 12
0
javascript form events (onsubmit) in RHTML
what''s the trick for adding an onSubmit hook when using the
start_form_tag? I can''t seem to find anything. I''m assuming that I can
do it, no?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jun 17
0
cache do and different actions calling the same .rhtml file
Hi,
I have two actions that call the same .rhtml file to print out search
results. One of them simply prints out all available results, and I''d
like to cache those, but if I add ''cache do'' in my .rhtml file, it
caches the search results too, which isn''t ok! Any way around this?
Thanks,
--
David N. Welton
- http://www.dedasys.com/davidw/
Linux, Open