Displaying 20 results from an estimated 400 matches similar to: "Setting layout template in .rhtml"
2006 Mar 31
3
Need to use a method without the layout
I need to use a method (called by one of my controllers) without using
the layout. All the other methods in the controller need to use this
layout except for thismethod (becausae it''s called by an Ajax script). I
know how to use :layout=>layout_name when calling a method from another
method, but nothing is calling this.
The layout needs to be removed in the method itself or I need
2006 Jan 18
6
Consistent testing with methods that depend on Date.today
Hi everyone
I''m building an app in which quite a bit of data is dependant on dates
(and times), and I have logic that depends on when ''today'' is. I''m
trying to get some better functional tests written, and am unsure of
the best way to approach it.
The problem is that I want the tests to run against the same data
every time, whether I run it on Tuesday or
2007 Jan 25
4
How to change the menu depending on the controller/method?
Hello,
I''m still dtarting with ruby on rails. And I''m trying to have a menu
depending on the current controller/method.
Here is what I was thinking of (please tell me if there''s a better way
to do it):
I have a database with menu_groups (corresponding to controllers) and
menu_elements(corresponding to methods). Each menu_element belongs to
one menu_group.
I created a
2006 Mar 31
3
Layout Question .. (Sitemesh related)
Hi,
I understand that the layout concept is very similar to OpenSymphony''s
Sitemesh project. I have done a lot of development with Sitemesh, but am
fairly new to Rails. I am wondering if there is a way for a layout in
rails to find out value of a variable from a page it is decorating?
In sitemesh you would be able to do <meta name="show_menu"
content="true"> on
2009 Mar 23
2
error statement: missing value where TRUE/FALSE needed
Hi list,
I want to try Gibbs sampling as a method of estimating a markov-switching
model of a mean-deviating, pth-order autoregressive process with time
varying transition probabilities via R and am using a code originally
written by another person; I attach the useful pdf document explaining the
code. When I run the code, I get an error message:
Error in if (r < vQ[i]) { : missing value
2013 Jan 07
4
JSON::ParserError in controller
Hi All
I''m trying to build an application which requires to scrap information
from a webpage. On trying to perform the action, I get an error while
trying to convert the html data to JSON. Has anyone experienced this
before and if so can you please tell me how to solve this problem ?
Please see below for code snippet and error log.
Thanks in advance
Anush
require
2006 Feb 17
7
Create and then show
I am attempting to redirect to the show method after creating a new
object. So, for example, once a new post is created the user is
presented with the new post in a show view. The problem is I can''t get
the correct <at> post.id to send to the show method. Rails always
returns 0 for this value.
Here''s what I have so far:
class ContentController < ApplicationController
2008 Aug 07
1
stripchart ignores main title option (PR#12202)
Full_Name: James Curran
Version: 2.7.1
OS: Windows XP/Vista
Submission from: (NULL) (130.216.51.81)
stripchart ignores the main title option. For example, in the documentation
stripchart(decrease ~ treatment,
main = "stripchart(OrchardSprays)",
vertical = TRUE, log = "y", data = OrchardSprays)
does not yield a plot with
2008 Jun 24
1
Shortcuts not appearing in gnome panel drawers
I'm trying to trace why launchers created by wine due to a program
installation are not appearing in the menus on my system.
The launchers appear to have the correct contents, but for some reason
gnome-panel is not adding them to my menus.
Does anyone know how to run the relavent gnome tools with options to see
what's happening when gnome reads these launchers.
Keep in mind that there
2008 Feb 12
6
DomU booting just stops
Hi
Ive recently created a DomU machine, when I run the xm create -c command
however the machine only boots to a certain point. Then stops....see below
root@gangster:/etc/xen# xm create -c hudson
Using config file "./hudson".
Started domain hudson
[ 0.000000] Linux version 2.6.22-14-xen (buildd@king)
(gcc version 4.1.3 20070929 (prerelease) (Ubuntu
2006 Sep 11
8
fckeditor works, but i cant get my buttons back...
I am going to bet this is a mongrel issue,because this doesn''t happen
under webrick. Anyway, I was able to get fckeditor: http://www.fckeditor.net/
to work under rails: http://www.joshuamcharles.com/xhtml/fckrails.php
i even saw the part about adding "1. Adding a YAML configuration file. For example, create
$(RAILS_ROOT)/config/mongrel_mime.yml with the contents:
xml:
2004 Feb 25
1
Rsync under cygwin
Hi,
I have rsync client and servers running under 3 Win2K boxes, and I can
sync when the source is remote and the target is local, but when the
source is local and the target is remote, I get the following error:
rsync.exe --recursive /cygdrive/d/BILLS_CMS rsync://192.168.213.102/PWB3
rsync: read error: Connection aborted
rsync error: error in rsync protocol data stream (code 12) at
2017 Jun 07
1
title streaming with ices
Please correct me if I'm wrong but the album title isn't exposed by the status-json file.
I'd really like to be able to expose this as well. I'm using EZStream but I think the configuration / exposure needs to be configured on the Icecast2 side.
Regards
Darragh Ó Héiligh
Websites:
Personal: www.digitaldarragh.com
Professional: www.computersupportservices.ie
Music:
2012 Aug 07
1
Unable to download R package
Hi,
I'm new to R. I'm using the R Gui and have tried to install additional packeges.
When I choose Packages/Install package(s) I get the following error...
utils:::menuInstallPkgs() Warning: unable to access index for repository http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.15
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.15
2009 Jun 05
1
Patch with modified commit message
This patch is from Chris Curran. I've only modified the commit message
to add clarity.
2009 Feb 02
1
Fit indexes in SEM with categorical data + ML estimation
Hello,
It has been found that SEM analysis using polychoric correlations + maximum
likelihood estimator produces incorrect test statistics and standard errors
(e.g., Flora, D. B., & Curran, P. J. (2004). An Empirical Evaluation of
Alternative Methods of Estimation for Con?rmatory Factor Analysis With
Ordinal Data. Psychological Methods, 9(4), 466-491).
Standard errors can be dealt with by
2008 Oct 19
9
Wacraft 3 Support deteriorating
Hi,
I am / was Wine mainly using for playing Warcraft 3. I know it's an old game but it's still highly popular. The problem is, with each new version the support gets worse and worse. There are even people in BugZilla who show the bit of code, which creates the new bugs but nothing happens.
For example with the newest dev release and the current stable release it is NOT possible to:
-
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view:
<h2>Tags</h2>
<% unless @recipe.tags.empty? %>
<table>
<tbody id="tags">
<%= render :partial=>''tags/tag'', :collection=>@recipe.tags %>
</tbody>
</table>
<% end %>
<% form_remote_tag :url=>tags_path(@recipe) do%>
2005 Aug 19
3
accessing DB result in template
hello,
I have the following in my controller
def totalmembers
@total = User.find_by_sql "SELECT COUNT(*) as count FROM users "
end
now inside my template how do i access the field "count" from the
query so i can print out the number of members ?
I tried everythign like <%= @total.count %> but nothing works.
thanks
adam
2009 May 14
1
*ERROR: BUILD FAILED! Banned tag found*
Error building ovirt-doc in master branch.
make[4]: Map '/root/rpmbuild/BUILD/ovirt-docs-0.98/Using_the_oVirt_Admin_UI'
wordt binnengegaan
Processing, Product: oVirt_Server_Suite, Version: 0, Edition: 0.95, Release:
2
START: xml-en-US do mei 14 22:56:19 CEST 2009
copying oVirt/en-US Common_Content
cleaning files
Appendix-B.xml
Appendix.xml
Author_Group.xml