Displaying 20 results from an estimated 10000 matches similar to: "reload render partial in production mode"
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
2007 Sep 20
2
Rendering a partial from within that partial
I am having trouble rendering a partial called ''names'' through a submit
tag located within that partial. The form data is saving with my current
code. However, the existing data is not loading into the form and the
partial is not being re-rendered upon submission to reveal the changes
to this data.What might I do to fix this?
show.rhtml
<%= javascript_include_tag :defaults
2006 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea
I have 3 simple files to show example ( below ).
index.rhml : If I put "?nial" inside the textarea, then submit to
:action => post
post.rhml : wrote
?nial
195
"\303\251nial"
//
params[:comment][:message] return => ?nial
params[:comment][:message][1] return => 195 ! ( 195 is not
2006 Feb 27
1
@content_for_sidebar?
Okay, I see this instance variable places, but I can not determine if it is real
or where the content comes from. I''ve tried views/<controller>/sidebar.rhtml,
_sidebar.rhtml, views/layouts/sidebar.rhtml and views/layouts/_sidebar.rhtml.
Does this actually exist? What''s the Rails Way to make a good sidebar?
http://www.google.com/search?q=content_for_sidebar
Thanks,
2006 Feb 19
2
instance variables in components not read by component view?
Hi,
I''m trying to write a sidebar menu with dynamic menus, and to do so I
would like to define a list of menus to display within my sidebar
component controller code and pass that list to the component display
view, like so:
# menu_controller.rb
class Sidebar::MenuController < ActionController::Base
uses_component_template_root
@menus = %w{admin user help}
def display
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to
generalize the sidebar such that in any page (controller or view, I''m
not sure which) I can dynamically add either
1. links to a given sidebar
2. or an entire sidebar.
I know that typo does this, and I''ve looked the code. I think it''s too
complex a solution for my simple site.
2005 Oct 02
1
rendering if template exists
Hi folks,
I have a component on my site called RelatedController. I intend to
put some links and content related with the current page (controller
and action). What I want to do is for the time being is
render :partial "#{@current_controller}_#{@current_action}"
Then in the component template root I have templates like
_products_index _products_cart etc. I have decided to put
2006 Jun 29
2
? concerning ActiveRecord, Action and template
Much appreciate any help here. I''m just getting started learning RoR and
setting up my first form is throwing me - I''m not getting the concepts
formalized in my mind.
Situation:
- Controller is: Donation
- Action is: donation_entry
- Template is: donation_entry.rhtml
This form will be displayed when selected from sidebar menu (which will
always be present for all
2006 Apr 30
4
renamed partial won''t render?
hi all
this works
<%= render :partial => "admin/works/work", :collection =>
@artist.works %>
but this doesn''t
<%= render :partial => "admin/works/worklist", :collection =>
@artist.works %>
even though the partial _work.rhtml and _worklist.rhtml are identical.
worklist.rhtml throws
undefined local variable or method
2006 Feb 05
2
render partial, object.property missing
trying to do my first rails app (surprise, it''s a blog!)
anyhow.
in list.rhtml, i have this:
<% for post in @posts
render(:partial => "post", :object=>post)
end %>
and in _post.rhtml, i have:
<tr>
<td><%= post.title%>
<br />
<%= post.body%>
<br />
problem is, no content shows up -- displays a
2006 May 03
2
render partial collection
my view contains a call to a partial:
<%= render(:partial => ''item_list'', :collection => @keyword.synonyms,
:locals => { :action_delete => "removesynonym", and_some_other_stuff
})
%>
_item_list.rhtml contains:
<%= link_to (
image_tag(''/images/deletebutton.png''),
{ :action => action_delete,
:id =>
2006 Mar 10
1
Maximum size of Ajax partial in Firefox?
Hi,
I''m writing an app that has some ajax-y content to it and am
experiencing a weird error in Firefox (1.5.0.1) that doesn''t appear
elsewhere (where ''elsewhere'' is IE6).
I''ve basically taken the typo sidebar code and rewritten it for my
needs. One of the things I''ve written is a ''sidebar'' that lists all the
countries in
2006 Jul 17
3
trouble with render :partial from controller
Hi,
I''m definitely a newbie on rails here. My very first attempt has gone
well up until this point, but for some reason, when I try to do a render
partial, I''m getting a full screen refresh.
I did a render partial just fine from an rhtml file. This problem is
specifically when calling render :partial => "my_partial" from the
controller''s .rb code.
2006 Feb 05
6
render partial -- show certain content only if...
i''m working on a _post.rhtml partial, and it displays one blog post.
i''m accessing this partial on the list.rhtml and the show.rhtml
what i''d like is to only show the "link" link on the list.rhtml and not
on the show page.
<%= post.title%>
<br />
<%= post.body%>
<%= link_to
2006 May 02
1
Newbie problem with Ajax and render partial
Hi all,
I''m having this problem that I''m sure will take most of you all but two
seconds to solve, but I''m very much a newbie. I read the documentation,
googled for an answer, to no avail.
I have simple page that lists items, each item as a row in a table. Each
item has a rating and a link to increment/decrement rating. When using
+/- on a rating on the first item,
2006 May 03
0
render partial collection passing property
my view contains a call to a partial:
<%= render(:partial => ''item_list'', :collection => @keyword.synonyms,
:locals => { :action_delete => "removesynonym", and_some_other_stuff
})
%>
_item_list.rhtml contains:
<%= link_to (
image_tag(''/images/deletebutton.png''),
{ :action => action_delete,
:id =>
2011 Sep 01
2
Partial Page update and related combobox
hello,
I am doing a rails project and i am new to rails, am stuck
with some problems.
1) I have a div container at the left side of the page just like
a sidebar which contains different links. And the right side of the page
is meant to display the content, which is also a div container . When i
click any of the links in the sidebar respective pages must be displayed
in the right
2006 Feb 12
0
One or Multiple Controllers
I''m working on a small project (5 major pages, 1 with 4 linked off, 1 with 3
linked off) and I was going to just do it all in flat html files with
dreamweaver templates (yeah, I was being kinda lazy). I got the sigle page
sections done and find out, it would really be nice to do this page in with
a database (list of new products). So I thought, hey maybe this is a good
use for rails
2006 Mar 11
0
Ruby-GetText-Package-1.3.0
Hi,
Ruby-GetText-Package-1.3.0 is now available.
Now ActiveRecord::Column.human_name values translate automaticaly.
Changes for RoR
---------------
* Improve Local::Object
* POSIX, C convert to "en".
* Enhance supports of Ruby on Rails.
* ActionMailer localization support.
* Use GetText function(_() N_() etc) in template.
* ISO-2022-JP charset is used when language
2006 Jan 02
2
Getting Index When Using render :partial
I''m using a web service to retrieve an array of results to a search
and a render :partial to display those results to the user, while at
the same time putting the results into the session. Is there a way
for my _book.rhtml file to have access to the index of the result
currently being displayed, like each_with_index makes available to
its block? This would allow me to have the