similar to: make rails 1.1 code 1.0-compliant

Displaying 20 results from an estimated 3000 matches similar to: "make rails 1.1 code 1.0-compliant"

2006 Apr 11
15
Migrating rails 1.0 app to 1.1 - Noob question
Hi all, I''ve upgraded my system to Rails 1.1.1 successfully. After much looking I haven''t found out how to migrate an existing application to a new rails version though. What is the procedure, if any, for upgrading the application I''ve developed in 1.0? Is there a script I need to run? -- Posted via http://www.ruby-forum.com/.
2006 Apr 18
7
freeze_gems to upgrade and SVN
Hi all- I just decided to move from my 1.1.0 to 1.1.2. I had previously frozen to 1.1.0 and therefore had all of rails in SVN in my vendor directory. When I finally got rake freeze_gems to work, it blasted (rm -rf) my vendor/rails directory and put a new one in there. This also blasted all my .svn directories. Is there some convenient way to do a freeze upgrade and play well with SVN?
2005 Dec 11
7
Catching Exceptions in ActionController
I''d like to be able to catch ActionController::MissingTemplate exceptions from within ActionControlle, *but*, MissingTemplate isn''t defined within my controllers!!! How is that possible - after all, all controller subclass ActionController, so how are exceptions it defines not there!? More importantly, how can I do this? -- Posted via http://www.ruby-forum.com/.
2009 Jan 04
3
Missing Template with edge Rails (2.3)
After freezing edge rails, all my controller examples are failing with MissingTemplate errors. e.g., "Missing template attachments/create.erb in view path app/views" Trying to actually render the views gives me the same error. I noticed I can fix most of them by using respond_do but I usually never use it. I almost always only need to respond to one format in one action so I omit
2012 Sep 23
6
Missing template projects/index, application/index ?
Getting this issue...even though I have my views there in both the projects and application. Also getting a routes issue "No route matches [GET] "/projects" when going to projects when I have root :to => "projects#index" defined in my routes file. Any idea? 1) Creating Projects can create a project Failure/Error: visit ''/''
2010 Jul 27
7
trouble with remote_form_for & html_update
I have a form that accepts comments and adds them to a list without refreshing the page. This is the html: <div id=''aremark''> <%= render :partial => ''comment'' %> </div> <% remote_form_for :comment, :url=>story_comments_path(@story), :html => { :id => ''comment'' } do |form| %> <h5><label
2006 May 23
7
back-porting 1.1.1 app to 1.0 rails server
I''ve been developing new application on local machine in rails 1.1.1. Hosting provider (godaddy) is at rails 1.0.0 and not upgrading any time soon I''m told. I set "RAILS_GEM_VERSION = ''1.0.0''" in my environment.rb file to get past inital errors, but now I''m getting the following error:
2011 Nov 24
2
This is not the error: ActionView::MissingTemplate
Hey everyone, I am getting the following error: Started POST "/rubyamf/gateway" for 127.0.0.1 at 2011-11-24 16:27:20 +1300 Processing by RubyamfController#gateway as */* Processing by ProjectsController#templates as */* ←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT `projects`.* FROM `projects` ←[0 m Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms) Completed 500
2006 Apr 07
2
Re: page.replace_html "#{var_containing_id_name}", :partial
Jeff Coleman <progressions@...> writes: > > Jason Tuttle wrote: > > The subject line says it all. -- Is there a way to do something like: > > > > page.replace_html "#{var_containing_id_name}", :partial => ''edit'' > > > > That line of code does not work, but I would like to pass the name of > > a variable to
2012 Nov 27
1
controller not rendering existing js.erb file
In my PlaceController, I have a search method, called remotely from a form the method is executed, but rendering is not executed as the template is stated as missing .. but it''s there ... post :search, :locale => I18n.locale, :format => :js, :country => "United" Error: test_should_search_places(Backoffice::PlacesControllerTest) ActionView::MissingTemplate:
2010 Jan 25
1
ActionMailer does not find templates in production mode
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missing template event_mailer/approval_requested_notification.erb in view path app/views):
2006 Apr 22
3
freeze_gems not freezing all gems?
Hi, I am currently experimenting on rake freeze_gems and there is something I do not understand. When I freeze_gems my app, it puts Rails in the /vendor/ directory, which works. But what about all other gems I have installed (for example Unicode, sqlite support, mysql support and so on)? The aim of freezing is to be independant of the versions of the ISP, but it seems that the server still
2010 Apr 10
5
Rendering a Partial as an Alternative
Suppose that I want to have a block of default content within a template that is replaced with the content of a specific partial only if that partial exists. Obviously there is the brute force approach of simply rendering the default content unless the relevant partial file exists in which case the relevant partial is rendered instead. I suspect that there may be a more elegant way to skin this
2008 Dec 18
2
Render a view from console
Hello! In my application I''m trying to render a view from a class in /lib folder. I have found that it''s very similar to render a view from console. So, I have tried different methods: >> string = ActionView::Base.new.render( :inline => ''works'', :layout => false ) => "works" >> string = ActionView::Base.new.render( :template =>
2006 Mar 28
2
Typo 2.6.0 broken with Rails 1.1
Updated today, got Typo 2.6.0 broken with Rails 1.1 (Ruby 1.8.4) -- WEBrick does not start. Is there any workaround except "svn co" with Typo trunk? -- Yaroslav Markin yaroslav at markin dot net
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my Votes, I have the create action and the corresponding create.js.erb, and respond_to :html, :js, :xml in the controller. Heres the log when I try and create a vote: Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan 14 20:46:36 -0800 2011 Processing by VotesController#create as */* Parameters:
2010 May 03
7
rendering images dynamically
Hi, I have a rails application where I respond to a request by fetching image urls from various web api calls and need to display them as they come available. I am able to display all the images once I get them all, but that causes an unacceptable delay for my user. One approach I am trying is, from my controller, set an @image variable, and then pass in a block to the model that retrieves the
2009 Apr 03
7
RJS not rendering correctly when mime-type is 'iphone'
I have an iPhone version of my site, and for some reason none of the rjs works when viewing the iPhone version. This happens instead: ActionView::MissingTemplate (Missing template controller_name/ update.erb in view path app/views) The rjs works fine when viewing the site normally, and it worked when viewing the iPhone version prior to upgrading Rails to 2.3.2. Additional info: I have
2006 Mar 28
7
Rails 1.1 and "freeze_gems"
I''m on OS X Tiger, and just upgraded my gems. I also ran ''rake rails:update''. After that, I ran "rake freeze_gems", I recieve the following: ===================== Freezing to the gems for Rails 1.1.0 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails Unpacked gem: ''activesupport-1.3.0'' mv activesupport-1.3.0 activesupport Unpacked
2010 Jun 24
0
Rails3: render_to_string of a .html.erb when request is a json request raises MissingTemplate error
I''ve the following situation (which actually works in Rails 2.3.8 and this is a result of the migration of our app to rails3): I have a partial which is rendered a few times (imagine tr''s in a table). On the clientside there''s a script that does a json request for a specific row (jQuery + ajax dataType: ''json'' and type: ''POST'') In