similar to: rendering templates from an engine''s app dir

Displaying 20 results from an estimated 2000 matches similar to: "rendering templates from an engine''s app dir"

2006 May 11
1
quick link_to question
Hey there, is there a way to include more variables besides the id as a hidden field (to not show in the url) when i''m using :post => true on a link_to() ? Thanks, Andr?s -- Andr?s Tarsoly tarsolya@gmail.com
2007 Sep 06
3
no build! on association?
Hi guys, it seems like I missed some trivial stuff going on in edge rails. Can you point me in the right direction about what happened to the build! method? Simple scenario: class User << AR has_many :posts end class Post belongs_to :user end console: >> u = User.find(1) >> u.posts [] >> u.posts.create!({:title => "Foo", :content =>
2007 Oct 26
5
specing rescue, ensure and else blocks of an Exception
Greetings, I''m using rspec with rcov for my applications and there is one issue which I cannot solve nor can find any proper information regarding it: specing what is in a rescue block in case of an exception. I''m using Ruby on Rails and I usually make use of exceptions in my controllers, like the following example: def action @foo = Foo.find(1)
2007 Oct 26
7
Weird failing spec
Hi guys, I have a weird failing spec, for which I just cannot figure out the reason of failure. I''m now rewriting my controller specs based on the advice of David and Ashley, and I got stuck on this (see: [rspec- users] specing rescue, ensure and else blocks of an Exception). http://pastie.caboo.se/111221 I''ve tried everything, like stubbing out :update_attributes! , even
2006 Nov 04
2
strange errors in dev.log and webserver log
Hi guys, I have encountered a strange error in one of my applications. The details are the following: The application is a very simple one, I have one model, Cards, it has some pretty basic stuff, some after_save methods for saving uploaded files to their places. I have an UI where I can manage the Card records, with the default methods, including ''edit'' cards_controller.rb:
2008 Jan 29
4
Setting up release-1.0.1
Hello, I am unable to get the backgroundrb server to run. Initially I got: /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant BackgrounDRb::MasterProxy (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
2006 Aug 10
6
Partials - asked before never got reply
I''m trying to figure out how multiple partials in one page would be configured when they are based on some action in the controller. As an example - I have a main/welcome page. If someone new or a user not logged in arrives at this page I display both a registration form and a login form. However, if they are logged in then those forms should not show up on that page. Also should
2006 May 22
1
Problems with ActiveRbac plugin
*Sorry for the first mail without subject* Hello, I try to use the active_rbac plugin (0.3.1) with Rails 1.1.2 but can''t succeed for the moment. Here is what I did : 1 - install Engines Plugin => OK. ''rake engines:info'' gives me "1.1.1" as the engines plugin version. 2 - install Active_rbac plugin => OK. Files are copied in vendor/plugins/active_rbac
2006 Feb 27
2
Publishing a Plugin via ./script/plugin
Hi How do I publish a plugin so I can download it via ./script/plugin. I''ve put my plugin (ActiveRBAC) on http://wiki.rubyonrails.com/rails/ pages/Plugins but seemingly ./script/plugin discover does not find it :/ Even if I do ./script/plugin source \ https://activerbac.turingstudio.com/source/active_rbac/trunk/ active_rbac it does not appear on ./script/plugin list.
2008 Jan 03
5
Start script not working when run via Rake
Hi there I''m using the latest release (r300) and ''script/backgroundrb start'' works perfectly when executed on the server, but when put inside a Rake task, it doesn''t launch the worker processes. The Rake task is as follows: task :start_backgroundrb do run "cd #{current_path} && ./script/backgroundrb start" end When I run this task, the
2005 Nov 26
4
activerecord rake test_mysql
Hi (I''m resubmitting this because First question: This is the rails dev list, correct? I''d like to submit a patch and am following the steps on this page: http://dev.rubyonrails.org/ Here''s what I did (using mysql 5.0.15-nt): created 2 databases: activerecord_unittest activerecord_unittest2 created 1 user: rails (giving all priveleges to both databases) ran
2008 May 04
3
Rails Configuration in Workers
I override some Rails'' configuration options in my project, like: config.database_configuration_file = "#{RAILS_ROOT}/local/config/ database.yml" But they aren''t picked up in BackgroundRB because Rails ActiveRecord is just initialized directly in MasterWorker#load_rails_env: db_config_file = YAML.load(ERB.new(IO.read("#{RAILS_HOME}/
2006 Mar 20
9
jEdit Snippets for Ruby on Rails
----------------------------------------------------- Announcing: jEdit Snippets for Ruby on Rails ----------------------------------------------------- I thought I''d "give a little back to the community" and whip up some SuperAbbrev files for ruby and rhtml that mimic all of the Textmate Rails bundle snippets. Note: This was totally inspired by Textmate and the syncPEOPLE
2006 May 29
1
Engine: Active_RBAC not working, missing require
Hi there, I try to install the active_rbac plugin as described in the manual on the active_rbac trac site. The installation through the plugin script was great: ruby script\plugin discover ruby script\plugin install engines ruby script\plugin install active_rbac I set up the environment.rb in rails\config dir correctly to Engines.start :active_rbac But if I try a rake db:migrate:engines
2006 May 30
2
Plugin install using version
Hallo, after I found an bug item for my active_rbac problem on windows using ruby one-click last stable (1.8.2 I guess), there was the rant to downgrade to engines-1.1.1. I successfully installed engines-1.1.2 and removed it by ruby script\plugin remove engines I tried ruby script\plugin install engines-1.1.1 in the gem way of handling versions but that didn''t worked. Any idea
2006 Mar 01
1
Net/Https & active_rbac & Debian Sarge
Hi, I''m attempting an install of active_rbac but am having some troubles. I''m running Debian 3.1 sarge and I am getting an error saying that I need to have net/https installed. I checked out my ruby lib and net/https.rb is nowhere to be found. I''m running the default ruby for Sarge which is 1.8.2. Was https.rb not included in this build? How can I get around this? I
2008 May 30
1
Adding vendor folder to $load_path
I''m using backgroundrb in a rails project, with packet and chronic unpacked in the vendor folder, to make backgroundrb I''ve added the following line to scribts/backgroundrb $LOAD_PATH << File.join(RAILS_HOME, "vendor") Do you believe it''s a good idea? I don''t like depend on the installed gems ciao ciao paolo -------------- next part
2008 Nov 11
1
attachment_fu, aws-s3 and backgroundrb
Hi, I''m using attachment_fu to store files on amazon s3. A background job is currently performing the upload and I''m having a strange issue where the very first file uploaded/created (attachment_fu uploads when creating the object) does not get uploaded. The db information is all all good. The model and attachment model associated with it are saved to the db, but the file is
2006 May 01
0
ACTIVE_BRAC engine migration error.
Hi there, I''ve installed the active_rbac engine and am following the manual to install it. I''ve come to point 2.2.1 Installing Engines and ActiveRBAC . When I try to execute the engines migration I get the following error: C:\Documents and Settings\Keegan\My Documents\Website Work\live2move\code\L2M>rake db:migrate:engines --trace (in C:/Documents and Settings/Keegan/My
2006 Jun 14
0
ACTIVE_BRAC engine migration error.
Hello Keegan, You may already have forgotten about your posting from last month - but I stumbled across the EXACT same error today, and figured out a way around it. The difficulty stems from you running under Windows XP, probably running InstantRails, right? I fairly quickly discovered that the reason things were not working according to the ActiveRBAC Manual was that the code for