similar to: Rails layout generator not doing what the documentation sais it should be doing?

Displaying 20 results from an estimated 30000 matches similar to: "Rails layout generator not doing what the documentation sais it should be doing?"

2012 Feb 06
3
Can't complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
I have just installed Rails 3.2.1 on my Xubuntu using the gem system and I try to make the tutorial http://guides.rubyonrails.org/getting_started.html and on section 4.3 Setting the Application Home Page I get the following error ExecJS::RuntimeError in Home#index Showing /home/xonx/rails/blog/app/views/layouts/application.html.erb where line #6 raised: (in
2008 Feb 21
1
Creating incorrect plurals when generating scaffold
Preface: I''m trying to find my way through the "Build Your Own Ruby on Rails Web Application" book. I''m completely new to programming and am having a hard time figuring out the differences between rails 2.0.2 and what''s in the book so please forgive me if this is a stupid question. I''m confused because I finally thought I''d figured out the
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc.. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2 When I was working on customizing the erb scaffold generator to match the style and design I wanted to use by creating custom templates in / lib/templates/erb/scaffold I found
2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
(Using Rails 4.1.1 with Ruby 2.1.1 on Mac OSX 10.6 Snow Leopard) I'm doing a Rails tutorial (in case you are interested in: It's http://guides.rubyonrails.org/getting_started.html), and I'm stuck on the following: I create in some erb file a link using <%= link_to 'Add new weird stuff', controller: new_article_path %> and this raises the exception
2009 Jul 26
2
How knows my paths in link_to? If I do not defined.
Hello, It´s my first post here. :) I´l following the guide of Ruby, but I need to know how the Ruby knows my path to other pages if I did not define anything, like this: app/views/posts/index.html.erb: <td><%= link_to ''Show'', post %></td> <td><%= link_to ''Edit'', edit_post_path(post) %></td> Other
2010 Oct 27
0
"Missing partial layouts/application" error on render :partial => "index", :layout => "application" - Rails3
This is the second time I have seen this error, and been googling around and cant find an explanation. This error is happening with Rails 3/1.9.2 and was not with Rails 2.3.8/1.8.7: *Template is missing Missing partial layouts/application with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths
2010 Aug 08
1
help me
i am creating an aplication where table name albums width attributes CREATE TABLE albums ( id int(11) NOT NULL auto_increment, title varchar(255) NOT NULL default '''', artist_old varchar(255) NOT NULL default '''', release_date datetime NOT NULL default ''0000-00-00 00:00:00'', genre varchar(50) NOT NULL default '''', created_at
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each email I send. For example, for my registration email I have a registration.text.plain.erb file and a registration.text.html.erb file. I want to use a layout for the html version of my emails. In my mailer I put: class AccountsMailer < ActionMailer::Base layout ''email'' ... end
2010 Dec 08
1
NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)
Thanks to Rails developer team. I tried Rails3 along this guide: Ruby on Rails Guides: Getting Started with Rails http://edgeguides.rubyonrails.org/getting_started.html and I met the problem described as following. ...Any ideas? =========== Environment: =========== $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin9.8.0] $ rails -v Rails 3.0.3 =========== Steps for reproduce:
2011 Dec 01
7
ExecJS::RuntimeError in Home#index
I have just installed RoR using RailsInstaller. This is on a Windows XP system. I have created the default application and it loads via localhost I have also updated execjs to 1.2.9 and installed nodes as initially there was no javascript support. ( not sure why the windows script server did not work though) I am now working through the Getting Started with Rails, Blog application at
2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I
2006 Jul 05
0
MasterView rails-optimized (x)html friendly template engine - Release 0.2.3
MasterView is a rails-optimized (x)html friendly template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). The main idea is to provide a template engine that would provide all the power of layouts, partials, and rails helpers but still be editable/styleable in a WYSIWYG editor. It was also a major goal that the syntax of these attribute directives
2010 Jul 12
1
newbie: what is preferred approach for including javascript files?
Hi, What is the cost of not cacheing javascript? If that cost is serious, do I prefer to selectively include javascript files only for view where they are needed? In other words I see four options: 1) Cache everything in layouts/application.html.erb and don''t worry about selective inclusion of .js files where they are needed; 2) cache some things in (e.g., dependencies like jquery) and
2007 Dec 12
0
layouts in Rails 2
i''m having a little problem coming up with a dry way to use a layout for multiple content types i am using Mime::Type.register_alias ''text/html'', :openid in my layouts folder i had application.html.erb, so i changed it to just be application.erb. that works for html requests, but anything marked as openid doesn''t display the layout at all. for now, i am having
2008 Sep 17
2
Layouts and content_for
when i studied the tutorial about layouts & content_for from railscast.I need a clarification as per their tutorial. url:http://railscasts.com/episodes/8-layouts-and-content-for <!- projects/index.rhtml -> <% content_for :head do %> <= stylesheet_link_tag ‘projects’ %> < end %> <!- layouts/application.rhtml -> <head> <title>Todo List</title>
2009 May 27
4
Scaffolding Results Format
Hi Everyone, I built a scaffold and I''m having trouble getting results properly formatted. (I need to get the data into multiple columns instead of just one big column) I can''t get all of my CSS to work properly in scaffold.css, layout/books.rhtml, or the books/index.rhtml.erb Anyways, maybe you have a suggestion. Default view (127.0.0.1:3000/books) Title Abstract
2007 Aug 11
0
nested layouts
hi, I''m using a helper like in nested-layouts plugin as follows def inside_layout(layout, &block) layout = layout.include?(''/'') ? layout : "layouts/#{layout}" @template.instance_variable_set(''@content_for_layout'', capture (&block)) concat( @template.render( :file => layout, :user_full_path => true ),
2006 Jun 22
5
Problems with layouts
ruby script/generate controller Tools::Search - ok in views/layouts/application.rhtml: <%= render_component :controller => ''tools/search'', :action => ''searchbox'', :params => {:context => ''header-section''} %> in
2009 Dec 16
0
Rails documentation generating error
Hi, I tried to generate Rails guides locally using following command rake doc:guides but rake aborats denoting following error message. rake aborted! Missing template credits.erb in view path /opt/local/lib/ruby/gems/1.8/ gems/rails-2.3.5/lib/../guides/rails_guides/../source Also I tried to generate Rails doc using rake doc:rails it also fails. rake aborted! Don''t know how to build
2010 Jan 30
1
Scaffold in Aptana error - wrong number of arguments(1 for 2) help?
Hi all - I''m new to rails and programming in general. I installed Rails 2.3.5, using mac os x 10.5.8, running into problems using scaffold. I am using Aptana Radrails as my IDE. I was not encountering this problem when using Rails 1.2.6, which is odd because from what I can gather online the entry syntax I am using should only work with Rails 2.x . Any help would be greatly appreciated.