Displaying 20 results from an estimated 800 matches similar to: "undefined method `stories_path'"
2009 Jul 13
3
undefined method error from atom builder
I have a simple controller that takes a request, looks up some data
and then returns the results as either HTML or Atom. The HTML response
works fine, but the Atom Builder is blowing up with an undefined
method error that I can''t figure out. It seems to be failing when the
ActiveRecord instance is passed to the ''entry'' method and it tries to
build the URL via the
2012 Aug 07
9
How do I force link_to/form helpers to use the superclass name in the path instead subclass?
I want my helpers to generate paths using a superclass instead of the
subclasses. Assuming I have Owner and Member that both inherit from User,
rails will use the current objects class name when generating paths:
Let''s say current_user is a mod: <%= link_to current_user.name,
current_user %> will generate "/mod/:id". I want to force it to generate
2010 Jul 27
13
3.0.0rc ActionController::RoutingError No route matches
Have been developing on 3.0.0beta4 and just updated to 3.0.0.rc.
When I try to link_to() a User object that previously had worked, I
get the following:
ActionView::Template::Error (No route matches
{:action=>"destroy", :controller=>"games", :id=>#<User ..... >
Yet I have in my routes.rb file has resources :users and my "rake
routes" shows:
2007 Dec 28
1
Plugins/Gems taking long time to download
When I try to install a gem/plugin, the script takes a while to even
start downloading; and when it does, it downloads as if it''s being
artificially capped - much slower then my regular internet connection.
Would anyone know why this is happening?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2011 Feb 09
16
rails 3.0.4 broke yield :javascript ?
hello,
I have today updated my rails app to 3.0.4 security release but now this
yield :javascripts
fails in the layout and I get my custom js escaped as text in the view.
anybody seeing this also?
tia,
jk
--
www.least-significant-bit.com
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to
2010 Nov 01
2
Creating RESTful helpers on the fly
If I have a resource called ''assets'' then I get for free a bunch of
helpers, like
assets_path
new_asset_path
and so forth, right?
I would like to be able to create a call to one of these on the fly when
I only find out the name of the resource at run time. For example I
would like to do this:
resource_name = "assets"
resource_path(resource_name, method => :new)
2009 Oct 27
1
lasso plot using LARS
When plotting a lars object, I cannot find a way to plot solid lines.
Even when the arguments breaks=F and lty="solid" are used, the vertical
lines at the break points do not plot but asterisks indicating the
breaks still plot as part of each path leaving solid lines broken up by
asterisks at the break points. I'm using the following code.
larsfit <-
2010 Mar 25
2
netlabR package in English
Dear R users,
Is documentation for the netlabR package available in English?
If not does anyone know if or when it will be?
Regards,
Keith
****************************************************************************This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed. If you are not
2009 Nov 18
4
rails newbie : routing error
After much ado about the naming of model adn controllers...
model : Expense
controller : Expenses
route : map.resources :expenses
Here I am using mysql database and created a unique index, since
db:migrated created an id object and made it as primary key. Now in
the
def create
@expense = Expense.new(params[:expense])
if @expense.save
flash[:viola] = ''New expense saved.. be
2008 Mar 27
10
Bryce 5.5 once ran, before update.
In the application database, there is a revue according to which Bryce 5.5 does not run under WINE. But not having looked at the AppDB first, I went ahead and installed Bryce 5.5 some months ago, which ran fine under WINE 0.9.44 or some such version...
Here is an old screenshot of the app, which has been used to render a tree on the Linux Box. (Kanotix 2006-RC4)
[Image:
2005 Aug 16
2
can't run bryce 5 on wine 20050725
I just installed wine 20050725 on SuSE Linux 9.3.
How do I install Bryce 5? I tried
% cd /media/Bryce_5
% wine Setup
wine: cannot fine 'Setup'
% wine ./Setup
wine: cannot determine executable type for L"G:\\Setup"
Thanks for any help you can give.
Steve
2011 Feb 17
8
[Bug 34371] New: [natty] Video corruption on kernel 2.6.38-1-generic (and on -3) and nVidia Corporation GT216 [GeForce GT 230M] (rev a2)
https://bugs.freedesktop.org/show_bug.cgi?id=34371
Summary: [natty] Video corruption on kernel 2.6.38-1-generic
(and on -3) and nVidia Corporation GT216 [GeForce GT
230M] (rev a2)
Product: xorg
Version: 7.6
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Keywords:
2009 Sep 29
5
NoMethodError in Stories#show
I''m a Rails newbie and am working my way through Simply Rails 2 by
Patrick Lenz.
Have run into a problem on page 207 of the book; this is the error I
run into when I fire up my server and open up httpL//localhost:3000/
stories/new I have posted the error message and trace below.
Thanks in advance for your help.
2008 May 02
4
0.9.60 Still doesn't do Bryce 5.5 correctly.
Just a few weeks ago, I reported a regression according to which Bryce 5.5 would at least display its application window correctly, until WINE v0.9.56 came along. Next, I posted here hoping that WINE developers would at least test Bryce themselves, to try working on this bug. And to that end, I had given a URL here, from which the application can be downloaded for free.
It was due to my own
2008 Jun 22
6
Installing Rails
Having a god-awful time installing Rails. I started with the
instructions found on this page:
http://articles.slicehost.com/2007/11/23/ubuntu-gutsy-mysql-and-ror
I get the following error:
vbfischer@ubuntu:~$ sudo gem install rails
[sudo] password for vbfischer:
Bulk updating Gem source index for: http://gems.rubyforge.org/
Updating metadata for 13 gems from http://gems.rubyonrails.org/
2013 Jun 10
1
ACPI Warning, then hang
I'm getting the following warning, and then the system locks:
ACPI Warning: Incorrect checksum in table [(bunch of spaces)] - 0x29,
should be 0x48
Here's a pic: http://db.tt/O6dxONzI
System is on a SuperMicro C7X58 motherboard that I just upgraded to
BIOS 2.0a, which I would like to stay on if possible. I tried
adjusting all the ACPI related BIOS settings without success.
Bryce
2008 Jan 21
8
Polymorphic URL helpers documentation and fixes
Yesterday I answered a question regarding polymorphic URL helpers on Core ML
and noticed that the module has no documentation. I''ve documented it and
rewritten unit tests using Mocha. I also optimized some of the code slightly
(nothing major, though). The patch also includes two fixes by Geoff Buesing,
who has done awesome work in this area in the past.
2012 Feb 01
6
[Bug 45517] New: [GTX 580] X seems to hang a login prompt -- PFIFO errors in dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=45517
Bug #: 45517
Summary: [GTX 580] X seems to hang a login prompt -- PFIFO
errors in dmesg
Classification: Unclassified
Product: xorg
Version: unspecified
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Keywords: regression
2008 Jun 20
4
Daz Bryce 6.0 not opening
Has anyone had any luck with Bryce 6.0?
I can fully install it as well as the extras that come with it but it will not run.
I have played around with settings in winecfg but nothing.
I am running Wine 1.0.0 under Mepis Linux 7 (Debian Etch base)
Any takers?
2007 Mar 13
2
create form from db
I think I have a rather simple question:
I generate forms rather regularly. I would like to make the process as
efficient as possible and would rather generate the markup from the
database much like script/generate scaffold does. My question is
this: is there a rake task or something that will take the schema of a
db as input and create a _table.rhtml file?
Thanks in advance,
Bryce