similar to: undefined method error from atom builder

Displaying 20 results from an estimated 300 matches similar to: "undefined method error from atom builder"

2008 Dec 20
3
undefined method `stories_path'
Hi, I recieve error "undefined method `stories_path'' for #<ActionView::Base:0x995b4ac>" when going to the view via site.com/stories/new The model is setup correctly, I can retrieve data from the db fine. I think it might be related to the helper but I have no idea where to start. It seems to think its failing on the first line of the view, i belive on 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:
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys, This is the final list of the new maintainers of each plugin. We need two more things to do: First please the owners of the repos add the rest of the maintainers. Second I will add a note on each rails/plugin mentioning this repos updates. So from now on, if someone else is interested in helping/contributing please send a message to the appropriate repo owner. verification
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.
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)
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 May 17
0
ActiveResource 3 on MRI 191: NameError (uninitialized constant Builder::XmlBase::Symbol)
We''ve run into this before and, in this particular project, I''m positive we had a hack somewhere to get AR to work but it seems to have gone missing and I''m not finding any hints in git history or Google. Any call to an AR.create will trigger it. Seems like a strategically placed require or include did the trick but I''m probably misremembering. The offending
2006 May 08
8
RSS Feed / xml.link problem?
I''m having an odd problem. I''m trying to create an RSS feed (working off the Recipe), but "xml.link" generates error about "Can''t convert Hash to String". From the error trace, it *looks* like it''s calling the a fileutil ''link'' method (as in, filesystem symbolic link) - even xml.tag! generates this error. Er, how do I make
2007 May 02
4
Shared Nested Resources
The skinny is that I''m attempting to add "Discussions" as resources under different resources ("Groups", "Projects", for example) and I''ve simply hit a roadblock (or two). Discussions are an association between the "discussable" (Group, Project, etc.) and a "Topic" so: class Discussion < ActiveRecord::Base belongs_to :topic
2006 Jul 14
2
how to get builder 2.0 to escape attributes in rxml
I am using rxml to produce opml files and need to escape ampersands in the attributes. builder 2.0 docs found at http://builder.rubyforge.org/ show the following xml = Builder::XmlMarkup.new xml.sample(:escaped=>"This&That", :unescaped=>:"Here&amp;There") xml.target! => <sample escaped="This&amp;That"
2012 Feb 13
1
Problem with libpri / asterisk
Hi all ! We currently have an asterisk box that is rather old (runs Asterisk 1.4.21.2), and it's connected to the PSTN with a sangoma A104d card. Now we have a new PRI at another location, and I use that occasion to build 2 new servers, one to replace our aging one and a new one for this new pri. So I downloaded the lastest libpri / asterisk / wanpipe driver, but the previous version of
2010 Mar 19
2
auto_complete plugin on rails 2.3.5
Hi, this is my first post. I have run: $ ruby script/plugin -v install auto_complete but the result is: Plugin not found: ["auto_complete"] #<Errno::ENOENT: No such file or directory - /dev/null> I have also try to run: $ ruby script/plugin -v list and the result is: Discovering plugins in http://dev.rubyonrails.com/svn/rails/plugins/ /CHANGELOG /account_location/
2008 May 14
1
[Bug 15932] New: This flash cause swfdec 0.6.4 to crash
http://bugs.freedesktop.org/show_bug.cgi?id=15932 Summary: This flash cause swfdec 0.6.4 to crash Product: swfdec Version: unspecified Platform: Other URL: http://www.dagbladet.no/tv/index.html?clipid=26540 OS/Version: All Status: NEW Severity: normal Priority: medium Component: plugin
2009 Jan 26
0
undefined method error for a polymorphic route
Hi, I''m trying to upgrade a 2.0.2 app to 2.2.2, but first I decided to upgrade to 2.1.2 after reading some posts recommending to do this. After firing up the app and running my tests, I now see that my polymorphic routes seem to be broken. test_should_create_footerpage(PagesControllerTest): NoMethodError: undefined method `footerpage_url'' for #<PagesController: 0x4814648
2012 Sep 04
0
dynamic route generation
In polymorphic_routes.rb, line 131, a name route that has been built (e.g. post_users_path) gets invoked on self (assuming there was not RoutesProxy instance appended as the first element of the array passed as the first argument to form_for, then send() would be invoked on self, which is PolymorphicRoutes module, which belongs to ActionDispatch::Routing): (proxy || self).send(named_route, *args)
2007 Jun 11
2
Builder::XmlMarkup and dashes
Has anyone hacked Builder::XmlMarkup to dasherize underscore tags by default? I know I can use tag!, but I''d like to find a way for it to translate underscores to dashes automatically. In other words: xml.department_manager do "fred end #=> <department-manager>fred</department-manager> I tried hacking Builder::XmlBase.method_missing but got myself all twisted up!
2014 Jun 10
3
OT - Finding/removing duplicate emails - WAS: Re: dovecot/lmtp munmap()-ing a lot
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 10 Jun 2014, Reindl Harald wrote: > Am 10.06.2014 15:17, schrieb Steffen Kaiser: >> On Tue, 10 Jun 2014, Charles Marcus wrote: >>> On 6/9/2014 5:44 PM, Ralf Hildebrandt <r at sys4.de> wrote: >>>> That's probably the problem here. The user had LOTS of (duplicate!) >>>> mails in his inbox.
2008 Oct 14
6
Disabling XML character escaping for to_xml
Currently, it appears to_xml will automatically escape any entities into their corresponding &XXX representation. There''s a piece in the documentation that says "If $KCODE is set to u and encoding set to UTF8, then escaping will NOT be performed." Unfortunately, this doesn''t appear to be the case. Even after following the docs and ensuring that default_charset is
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
libswfdec/swfdec_player.c | 18 +-- test/trace/loadvars-decode-5.swf |binary test/trace/loadvars-decode-5.swf.trace | 182 +++++++++++++++++++++++++++++++++ test/trace/loadvars-decode-6.swf |binary test/trace/loadvars-decode-6.swf.trace | 182 +++++++++++++++++++++++++++++++++ test/trace/loadvars-decode-7.swf |binary test/trace/loadvars-decode-7.swf.trace |