Displaying 20 results from an estimated 600 matches similar to: "select in *.rhtml"
2006 Feb 12
9
CSS in Views
How can I link to a CSS file in one of my view files?
--
Posted via http://www.ruby-forum.com/.
2002 Feb 22
2
CAD on wine - some almost useable, others not at all...
> I have tried some CAD packages on wine. In fact, I am a student of
> architecture who wants to get a working CAD app on his Linux Laptop.
I can't help. But have you looked at qcad? It's a CAD app that runs on
Linux. You can find it at www.qcad.org.
2008 Nov 02
5
Issue with domains
I am running Dovecot 1.0.10 and have it working great on ender.ath.cx (my
free DynDNS.com subdomain), but recently I registered lemcoe.com and
pointed it to the same IP address as ender.ath.cx. The problem is, only
e-mail sent to the @ender.ath.cx works. If it is send it to @lemcoe.com, I
don't know where it goes. I get no errors either.
How can I get Dovecot to recognize both domains?
TIA.
2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one
problem I''ve run into is that it''s very difficult to customize
inherited_resource behaviour in subclasses. Looking through the
source I see it uses things like undef_method and class_attribute.
For example, if I have the following controllers:
class ItemsController
inherit_resources
actions :new,
2001 Apr 01
3
command.com/edit.com
Hey all.
I'm trying to do some win32 compilation under Wine, but I really need to
get some form of console (and maybe dos edit, my favorite programmers
editor :).
Anyone tell me how I can either get these working, or get something siilar
which DOES work under Wine?
Regards,
Ender
_________________________ ______________________________
| James 'Ender' Brown | Some call me
2007 Dec 15
3
check_box not being checked
I''m new to RoR and I''m having a little problem that I can''t solve.
My model is simple. I have Lists and ListItems.
I have a view that loops through all the list items, and I put the
HTML for the each list item row in a partial called _list_item.rhtml.
This is the view, called show.rhtml
<ul>
<%= render(:partial => "list_item", :collection =>
2001 Aug 16
1
rsync test harness
You can now do "make check" in the CVS version of rsync and it will
run some elementary self tests. It also runs these tests on
build.samba.org, which should help catch unintended regressions,
particularly on unusual platforms.
Contributions of more test cases would be welcome.
--
Martin
2005 May 15
4
Re: nazi spam in German over list address
On Sun, 2005-05-15 at 15:00 +0200, Lars Grobe wrote:
> Hi,
>
> whoever is able to unsubscribe addresses from the list: I am currently
> getting lots of spam with nazi content over this mailing list.
Unfortunately we are all to well aware of this problem, but as the long-
standing policy of samba.org lists is to allow public posting, we are
between a rock and a hard place.
This has
2007 Sep 18
2
rSpec / Nested Routes / Mocks
I''m having a terrible time trying to test a nested route with rSpec.
I can''t seem to tell rSpec to expect the call @item.user. The
following error message plagues me not matter how I try to fuss with
the mock:
Spec::Mocks::MockExpectationError in ''ItemsController handling POST /
items should redirect to the new course on successful save''
Mock
2006 Sep 10
5
why isn't :order working in acts_as_list
Ok, I''m sure this has to be something stupid that I''m doing (or not
doing), but I can''t seem to get things to order by the specified column.
class List < ActiveRecord::Base
has_many :list_items, :order => "orderby"
The error I get back when trying to save the link is:
Unknown column ''position'' in ''order clause'':
2006 Aug 01
5
MVC question
Should I create a separate controller for each model or should I use 1
controller for all models?
Having 1 "admin" controller for all backend stuff seems logic to me, but
when I scaffold it rather makes 1 controller per model.
I''m fairly new to the MVC pattern, so what''s the prefered way of doing
it?
I''m also wondering if the API is up to date? When
2006 Aug 24
2
Design questions on creating digg.com-like URLs (are they considered RESTful?)
Hi everyone, I''m working on creating a site that functions similar to
digg.com (please no "no more digg clones" remarks please! :) ). One
thing I really like about digg is there URLs are very nice to read and I
would like to emulate that without having a lot of actions spread out
all over my application.
So in my app I have three main resources:
Users, Tags, and Items
2009 May 03
0
HTTP Auth 401 Even on Valid Login
I can''t understand why authenticate_or_request_with_http_basic keeps
failing even though I am entering the correct info.
If I try to access /admin/items/new, I enter the correct info but I
keep getting prompted.
The strange part is that when I cancel out, I get "HTTP Basic: Acce".
Here''s the controllers:
class Admin::BaseController < ApplicationController
2007 Mar 21
0
Getting the module name with ObjectSpace...
Hey :)
I''m trying to create a method for making a sitemap dynamically. It
works great for flat sites where you simply have your controllers in
the app/controllers directory. In this case, I can extract the
controller names like,
@controllers
ObjectSpace.subclasses_of(ActionController::Base).each do |obj|
@controllers["#{obj.controller_name}"] = obj
end
However,
2009 Apr 19
1
Cucmber: Mysql::Error: query: not connected: ROLLBACK
Hi,
I ran in trouble with unexpected rollbacks using cucumber 0.3.0.
My feature-file looks like
Scenario: Create Valid Item
Given I start
and the step is
Given /^I start$/ do
get "/items"
end
In my log/test.log I get
SQL (0.2ms) SET NAMES ''utf8''
SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
SQL (0.1ms) BEGIN
Processing ItemsController#index
2002 May 14
1
Samba 3.0 pre 17, character set
Hi!
I have searched the net, but I finally didn't find an answer. I have a Samba
TNG installation here, with some problems, and I would really like to
replace it with 3.0 now (2.2 is missing some important functionality I need, so I
would like to try the "unstable" 3.0).
I compiled and installed, it works fine as pdc, but I don't get some
national special characters (German
2007 Oct 26
3
Specing with Subdomains as Account Keys
How do you go about implementing and rspecing subdomains as account
keys? I''m sure that this must be an issues for others as well.
So I have an app using subdomains as account keys. The Application
Controller sets up @current_company in a before filter. Everything is
done within the context of the @current_company.
After reading about Demeter''s Revenge
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that
result in an ajax call that updates two sections on the page. Here is
the code in the controller
def create
...
render :update do |page|
page.replace_html ''list_items'', :partial => ''lists/list_items''
page.replace_html ''add_item'', :partial =>
2005 Feb 21
4
H&R Block Tax cut with wine
I purchased H&R Block Tax cut Deluxe to do my 2004 taxes.
I decided to give The Feb 2005 version of Wine under Fedora 1 a try
before rebooting my machine to Windows and actually starting to work on my
taxes.
Wine seemed to install Tax Cut with out any problems.
However, when I tried to start Tax Cut 2004 , it complained that Mozilla did
not have an
active X Browser and offered to go on
2006 Aug 02
2
Feature request
Is there a place for feature requesting?
Rails uses the "@" prefix for vars in the request scope, why not add a
prefix for the session scope? Instead of "session[:myvar]" it could then
be something like "%myvar".
--
Posted via http://www.ruby-forum.com/.