similar to: how to use view_paths() and why you need to use.

Displaying 20 results from an estimated 200000 matches similar to: "how to use view_paths() and why you need to use."

2007 Aug 18
0
Tests for render when changing view_paths
Hi there, I''ve been getting into RSpec recently and I must say what a fantastic product I think it is. But, I''ve hit a bit of a problem. In my ApplicationHelper I have a method which changes the view_paths in a controller so a partial can be rendered from a different base directory. It simply takes an array of view_paths that a partial could be in, updates the
2007 Aug 15
5
Misc notes concerning view_paths
Hi all, I''ve been playing in the trunk with putting stuff in different dirs to keep files from a reusable framework separate from the app files. Here are a few considerations regarding the view_paths setting: config.view_path is used to set both action_controller.view_paths and action_mailer.template_root. We get some buggy/unexpected behavior here because
2007 Oct 02
19
Per-Request View Paths
I haven''t had a chance to work on fixing multiple controller view paths recently. My original patch attempt was: http://dev.rubyonrails.org/ticket/8582 It was rejected due to the fact that it was fixing the symptom more than the problem. However, I think it''s critical that this problem get fixed, otherwise the whole concept of view_paths is severely neutered and
2011 Feb 21
2
self.prepend_view_path - am I missing something
I have an app that varies its content based upon the domain from which it is being accessed. Some of the domain characteristics are supported in the model but it is easier varying static text in the views and then sharing the form templates via partials etc. Rails 2.3.10 and looking at the documentation at
2007 Dec 23
5
prepend_view_path not working
Now that controllers can have multiple view paths I''ve been playing with themes over the weekend. Running into a view issues. I have a before_filter in the ApplicationController that calls prepend_view_path to add the path of my theme. I even log the view_paths in an after_filter to make sure it made it all the way through. The output looks something like:
2007 Aug 15
2
need help on writing a plugin
Hey all, I''ve just "script/generate plugin my_plugin" and I would like to "overload" one of my view. Say I have app/views/sessions/new.html.erb and I would like to rewrite that file without touching it using the plugin. Any idea how to do this? I would also like to do the same thing with models and controllers of my application. I couldn''t find a tutorial
2010 Oct 20
7
How can I render a template outside of a controller in Rails 3?
Hi All, I can''t seem to render a template outside of a controller in my Rails 3 application. The googling I''ve done has been helpful, and I eventually found some useful info at http://www.swombat.com/rails-rendering-templates-outside-of-a-contro. However, this seems to be broken in Rails 3. Does anyone have any ideas how I can fix this method or perhaps know of a better
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
Hi, it probably is a noob question but I''m confused by this error message: active_support/dependencies.rb:478:in `const_missing'': uninitialized constant Invoice::ApplicationController Situation: I have an InvoicesController with a create method that in turn calls upon a MiddleMan.worker(:billing_worker), which in turn finds an Invoice and calls upon @invoice.print_invoice
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing ''end'' statement), I''m experiencing WSODs - the browser reports a lost network connection, rather than the helpful compilation error that we used to have. When the compilation fails, ActionView#compile_template raises this error : TemplateError.new(find_base_path_for(file_name || template), file_name ||
2011 Apr 25
30
NoMethodError in Book
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name'' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <div id="error_explanation"> <h2><%=
2011 Nov 06
2
Ruby on Rails 3.1 Installation tutorial for Ubuntu (versions 11.04, 11.10) and Linux Mint (version 11) - download or read online if you need it
After several weeks of messing with Ruby on Rails on Ubuntu I made this 34 pages PDF installation tutorial which covers: - Ruby on Rails default installation (Ruby 1.9.2, Rails 3.1, WEbrick web server, SQLite3 database) - Ruby on Rails advanced installation (Ruby 1.9.2, Rails 3.1, Apache web server, MySQL database) I am total beginner with Ruby on Rails (and a beginner with Ubuntu Linux) -
2011 Jun 09
0
How to shift the heat map
Hi, what i need is as the example i attached in the box plot. As you can see, the boxplot have margins and it kind of follow the coding I've added, but, it does not happen for the heat map. Could you help me with this.. Thanks in advance. the following is the coding i've used: # Draw the heatmap # heatmap.r # # Purpose: Create a heatmap # # Input: Data matrix as
2004 Aug 06
1
Update on Ogg-based IETF standard documents (MIME-types, file formats)
Hi everybody, this is an update on the developed Ogg IETF standard documents and their status. All of these documents are in the process of discussion and have not yet been accepted as standards. <p>The following Internet-Drafts (I-Ds) have been prepared for standardisation and submitted to the IETF: 1) an I-D requesting to register "application/ogg" as a mime-type written by
2004 Aug 06
1
Update on Ogg-based IETF standard documents (MIME-types, file formats)
Hi everybody, this is an update on the developed Ogg IETF standard documents and their status. All of these documents are in the process of discussion and have not yet been accepted as standards. <p>The following Internet-Drafts (I-Ds) have been prepared for standardisation and submitted to the IETF: 1) an I-D requesting to register "application/ogg" as a mime-type written by
2004 Aug 06
1
Update on Ogg-based IETF standard documents (MIME-types, file formats)
Hi everybody, this is an update on the developed Ogg IETF standard documents and their status. All of these documents are in the process of discussion and have not yet been accepted as standards. <p>The following Internet-Drafts (I-Ds) have been prepared for standardisation and submitted to the IETF: 1) an I-D requesting to register "application/ogg" as a mime-type written by
2009 Dec 29
3
OT: What are the 2 openssl commands I need to use?
I looked on the openssl man page but am too dense with commands to understand what I need to do..... Ran into problems generating a key and CSR for SSL, because the web site is on a server with an old Ensim Control Panel. Please someone knowledgeable, give me the openssl commands I need to use, after I ssh into the web site, to generate a 2048 bit key and csr. TIA and Happy New Year!
2012 Dec 25
0
[LLVMdev] [cfe-dev] Do you use UML utility programs?
UML diagrams can be really helpful for explaining how a piece of code works (such as the diagrams in your klang project on github). The main reason I don't draw them is that I haven't found convenient tools to use which integrate well with my workflow. Doxygen produces class diagrams, but I would really like to have something which produces sequence diagrams (such as
2008 Apr 17
4
Do I need to use sessions if I don't store anything in them?
Hi, I got very small app that has user part and admin part. The problem is that after a while the sessions table has ~150mb. I don''t really need to store any user data in the session for the user part. I only need it for the admin part. Can I simply turn session off in controllers from the user part? Are there any drawbacks of turning the session off? Regards
2008 Nov 08
4
missing value where TRUE/FALSE needed
Hello dear R people, for my MSc thesis I need to program some functions, and some of them simply do not work. In the following example, I made sure both vectors have the same length (10), but R gives me the following error: Error in if (vector1[i] == vector2[j]) { : missing value where TRUE/FALSE needed I googled for possible solutions, but I did not find a good explanation for this...
2012 Dec 26
2
[LLVMdev] [cfe-dev] Do you use UML utility programs?
On Tue, Dec 25, 2012 at 8:10 AM, Sean Silva <silvas at purdue.edu> wrote: > > The main reason I don't draw them is that I haven't found convenient > tools to use which integrate well with my workflow. Doxygen produces > class diagrams, but I would really like to have something which > produces sequence diagrams do you know that doxygen have a @msc and @mscfile