similar to: checking existence of a partial

Displaying 20 results from an estimated 7000 matches similar to: "checking existence of a partial"

2006 Apr 03
3
render :partial + redirect_to :controller
This is of course disallowed, which I discovered only after nearly completing my spanking new ajaxified UI. What is the motivation behind this, and what is the best workaround? This UI does a scriptaculous drag-and-drop of items from a first div (div1) over to a second div (div2), which triggers the contents of div2 to be updated to reflect the drop. No prob, thus far. But then the
2006 Mar 24
1
R for MacOSX - History and command line problems
Hi! I have the following issues using "R for Mac OS X 2.2.1" (from the ppc-.dmg) on a Mac OS X 10.4.5: 1) The command history is never saved (automatically) to .Rhistory. (The file stays empty.) 2) If I save a history to some file via the "Save History" button, and I load it afterwards via "Load History", only the first entry of the saved History appears in
2016 Sep 27
2
src/Makevars ignored ?
Le 27/09/16 ? 16:17, Kasper Daniel Hansen a ?crit : > As a package author, it is in my opinion irresponsible to override these > system settings (which is why it is also impossible). You have no idea > what system it is being deployed on, as the it guy dedicated to install and maintain softs on our cluster I have a reasonable knowledge of the systems I work on. I don't want to
2006 Jan 21
5
Distributing a Rails app
I''ve developed a Rails application that I''d like to make generally available, but I''m not sure how to go about this, or even what tools are most appropriate. Is this something that the Rails framework provides, or is it a job for Rake? for Rubygems? for Tar2rubyscript or Rubyscript2exe? A pointer to a "Distributing your Rails Application" would be ideal. --
2006 Jul 13
3
Performance diff between rendering partial vs. calling a helper?
Hi, Is there any performance difference between rendering partials vs. calling a helper? When we initally started coding we built a bunch of small partials and if there is a significant performance overhead with them, we''ll probably try to switch them over to helpers. They seem like they would be quite similar but I don''t know the full details of how partials are handled.
2006 Mar 08
3
getting holiday dates?
Hi, i''m writing a timesheet application in which i need to know when the holidays are, (bank holidays, etc) Is there a very clever way of getting this info that wouldnt require me to manually add it to my database?? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2008 Jan 08
3
What happened to _form.rhtml partial in rails 2.0??
Just wondering if anyone could point me to a good explanation of why the latest way of doing things does not include using something like _form.html.erb partials in RESTful rails 2.0?? Why did we move away from partials, etc?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2006 Aug 01
2
Partial Naming Madness
Hi, I am having the following issue with a partial. During initial page load, I am doing a "render_partial_collect ''foo'', @foos", and all goes well. Each foo partial makes use of a variable inside called ''foo'' (and can get foo.id etc). After all the partials are loaded, I need to :update a div corresponding to one of the partials (ie re-load the
2006 Mar 08
4
scrollbar doesn''t show on the right place when using partial( )
Hi, I''m using partial() to connect ours pages togother, however, one of the partials is larger than the other, when it happens, instead of create a scrollbar on the browser, a scrollbar appears at the end of the partial, since the partial is in the middle of the web site. it isn''t really good... So does some one know how to remove the scrollbar on the partial and put it on the
2006 Jan 18
3
Partial Problems
Hey guys, I''m having a little trouble working out partials. I have successfully made a partial work in my list.rhtml, but as I see it on the 15min introductry video. They guy uses one partial on multipul pages. At the moment I am trying this in my show.rhtml, I write <%= render :partial => "journal" %> and I get this. NoMethodError in Write#show > > Showing
2006 May 16
4
question about strftime when called from partial.
Hi, I''m calling a helper I''ve written - format_time() that is called from my views with a given time that was selected from my database and was returned to the view via an instance variable. When I call format_time from a partial, I see that I get some kind of String error and the partial won''t render. Basically, the object being passed in to format_time is already a
2008 Mar 12
2
RSpec view test for :partial with :locals?
I''m currently working on some RSpec view tests and I''m having problems with expect_render. Most of the expect_render''s work fine, but in one of my views I have: <%= render :partial => "user_cloud", :locals => {:user => @featured_user} %> I see that expect_render supports ":object" or ":collection" for the second
2006 May 30
6
Reuse Partials
Hi all, This is my first official post as RoR developer, so here it is. I''ve got a partial for a Address (Postcode, Address, City, ...). I want to use this partial multiple times on the same form? So I want to fill in multiple addresses and insert them individualy. How do I go about doing this? Kind Regards, Eugene Louw -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
1
processing code within a partial
I''m doing layouts and I have a question on how to process <%= ... %> tags within partials. I have a standard.rhtml file with : <div id="header"><%= render_partial "layouts/header" %></div> and my _header.rhtml contains a tag as such: <link_to "Categories", :controller => "categories", :action=> "list"
2005 Dec 19
1
Newbie Q: HOW TO: make a partial containing tabs
Hi Listers, I''m wondering about the possibility of creating a tabbed partial (or set of partials) dependant on a parent-children structure. For example; I have a parent JOB - job has many sons (Ooops wrong story). JOB contains CONTACTS, NOTES, STATISTICS, WORKFLOW, etc.. I want to show the general JOB data at the top of my screen, then below that load a set of tabs containing the
2006 Apr 12
4
CSS and Javascript with partials and layouts
Hi, I''m developing an application that uses a layout called main on every page. Most of the individual pages are represented with a single partial template, but there are several pages that are composed of multiple partials. My main layout looks something like this: Code: <html> <head> <title><%= @title %></title> <%= stylesheet_link_tag
2012 May 21
4
Rendering partial views with ajax calls in rails 3.1
I''m starting now with rails, and i have simply question i think. I need to render two partials in one ajax call: I have the following controller: # GET /hosts/1 # GET /hosts/1.json def show @host = Host.find(params[:id]) respond_to do |format| format.html #show.html format.js format.json { render :json => @host } end
2008 May 08
0
stub sub partials when testing partial with rspec
Hello all I prefer to use many partials. It makes my code more DRY Also I use rspec, and when I have to test partial with sub partials I have a problem. if I stub render, then my partial will not be rendered. If i do not stub render it tries to render sub partial (and i don''t need this) Not very long googling did not bring the answer, so I made very dirty and IMHO dangerous function
2012 May 28
4
How to load a selection list into the method new of a controller?
Hi friends! I''m relatively new with Rails and I''m struggling for a long time with this problem (it should have a pattern solution but until now I didn''t find it): I have the following models: Institution, City, State and Country. class Country < ActiveRecord::Base has_many :states has_many :cities, :through => :states end # == Schema Information # Table
2017 Oct 15
2
Download data from NASA for multiple locations - RCurl
Dear all, i am trying to download time-series climatic data from GES DISC (NASA) Hydrology Data Rods web-service. Unfortunately, no wget method is available. Five parameters are needed for data retrieval: variable, location, startDate, endDate, and type. For example: ###