similar to: Render Partial virtual pages

Displaying 20 results from an estimated 30000 matches similar to: "Render Partial virtual pages"

2006 Jul 24
0
Ajax page.replace_html model validation render partial errors
Hi; I have the following setup: A model: that validates using helpers like: validates_presence_of, etc.. A view: called ''new'' which renders a partial The partial: _form which has error_messages_for and a form_remote_tag , submit_tag and end_form_tag An action ''create'': that gets executed via the submit_tag in the _form and which in case it can''t
2006 May 19
2
Checking div generation technique
Hi guys, just wanted to ask, on the onset of our page, we generate several div''s. What we noticed on an intermittent connection is that several divs don''t get to generate all the div''s sometimes so we had to reload our page. Would you have any technique on how we can do this? thanks bing -- Posted via http://www.ruby-forum.com/.
2006 May 17
9
Render No Layout?
Hi guys, Am having a problem. I have this def in my index controller that works like this: def do_something $a = variable1 $b = variable2 $c = variable3 $d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'', ''#{$a} - #{$b}''); \n </script>" $trigger = "1" render(:partial =>
2008 Feb 01
1
render partial in div
I have this link which when clicked will loop and render more links and a form from a partial inside of "myDiv": <%= link_to_remote ''MyLink'' . . . ., :update =>"myDiv" %> <div id = myDiv> <div> <div> <div> What I am trying to do is have a form_remote_tag that re-renders the list of stuff in "myDiv" when
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys, I''ve been able to successfully install the postgres adapter for a remote database machine to get rails up. My machine is running on Fedora 2. Rails version 1.1.2. Is my yml config correct? I am getting this error when I execute script/generate scaffold service_contents content : exists app/controllers/ exists app/helpers/ create app/views/spiel exists
2006 Aug 08
3
Rendering partials based on conditions
Hi, A bit unsure how this gets accomplished - particularly how it might get set up in the layout. Currently - This is my welcome.rthml (what comes up at main page) <% if @u %> <%= render :partial => "main/session" %> <% else %> <%= render :partial => "main/login" %> <%= render :partial => "main/register" %> <% end %>
2006 Mar 18
0
AJAX and partial template rendering
I was attempting to integrate a data grid component and ran into a problem. I needed to update the <DIV> around my data grid component, however, the original code did not, so it was using Ajax.Request instead of Ajax.Updater to do the Ajax call. I thought that instead of using Ajax.Updater, I could simply leave the Ajax.Request call, and just do a render (:partial =>
2006 May 31
2
Checkbox Help
Hi guys, I am need to help again. Sorry for the newbie query but would definitely appreciate the help. Here''s the q: I generate a list of items from the database and render them out with a checkbox beside them. A user may click more than one item and I would want to save all checked items into another table. I have been able to give each checkbox a unique id . Would anyone be able
2006 May 18
3
How to call controller from a div
Hi guys, it''s me again, Just wanted to ask, what technique can you use to call a def inside your controller while clicking on a div? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
2
Can you render partial with collection non-existent rows?
Hi, I''m trying to create a blank input form with a header and many item lines. I would like to build the item lines dynamically ie not hard code up to 100 lines into my form. Is it possible to use render partial with a dummy collection for this? When I try to render with @item_lines holding 1 object created with .new, I get: ActionView::TemplateError (undefined method
2006 Jun 08
1
Using hidden fields to pass values
Hi guys, Another question from a newbie. I need to update a div on my page which gets updated regularly. So what I''ve done is to create a hidden field which technically just contains the user_id. This field doesn''t change. I was planning of pulling that text field user_id data and putting it into params but it keeps on giving me a nil value. Is there a technique I could
2007 Jun 21
1
render :partial => :url - is it possible?
Hi, this is my first post to the list. I''m still learning the rails framework, having done most of my previous web development in PHP. I''ve done a bit of googling for the answer to this question, but maybe I''m just lacking the right word to search for. Several parts of my site, such as sidebar components, are self-contained, modularized and re-used in several parts
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
2014 Jun 08
0
Re-render partial inside a modal
*Inside my home.html.erb. I am rendering a partial inside a modal for my sign-up.* <div id="myModal" class="reveal-modal" data-reveal> <%= render partial: 'users/form', :controller=>"users", :action =>"new" %> <a class="close-reveal-modal">&#215;</a> </div> *In my Users.controller.rb, I am
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 Apr 15
2
Using a Button to render partial
Is there a way to render a partial using a button? Basically in a content div I want the user to launch a new sub content item in the same div by clicking a button. Any help appreciated. Loving rails more and more everyday. -- Posted via http://www.ruby-forum.com/.
2009 Apr 28
0
google adsense breaks render :partial =>
Hey everybody, i''ve got a control that returns a partial, no biggie. Except when that partial contains the javascript for my adsense account. Then the partial renders correctly, and then quickly replaces my page with nothing by the ad. When i take away my adsense js, everything works great. Has anyone encountered this before, or know how to get around it? def submit_remote_form render
2006 May 17
3
RJS behave differently than render :partial?
I have a method in my controller like the following (the syntax may not be correct, I''m doing this from memory - you should be able to get the idea though) My rhtml page has a DIV with id="country_areas", which contains a partial that only makes a drop down of country areas for a specific country. When changing the country in the country drop down, it uses the
2006 May 05
0
Re: Javascript Event Handler for Chat App
anyone? Hi guys, I''m stuck with this perplexing problem of Javascript and periodic updater. I''m trying to do a chat application and it''s an issue of holding on the the div id. I have no problems when the user clicks on a submit button to sends a message to the presence server. On the other side of it though, I''m using periodicupdater to poll the server
2006 Jun 21
8
Sans Periodically call remote-- possible?
I was wondering, imagine this situation. You have browser 1 on machine 1 and browser 2 on machine 2. I created a div so that I can update certain elements on the database. Is it possible to have the data rendered on browser 2 using ajax but without using the periodically call remote? Is it possible to use the submit event from browser 1 to trigger browser 2 to update? thanks, Bing --