Displaying 20 results from an estimated 6000 matches similar to: "ajax render_partial"
2005 Apr 13
2
render_partial & RXML
Does render_partial work within a RXML file? I am attempting the following:
xml.users do
for user in @users
render_partial ''user'', user
end
end
All that is output is:
<user>
</user>
Without any exception or anything to indicate that I''m doing something
wrong. Does anyone have any experiece with this?
Josh
2006 Jun 01
3
how can i redirect a person after a login
i built my own login system, but unfortunately, i am having problems
(ie, can''t really figure out how) to redirect a person back to the page
he was requesting before logging in...say, as the admin i want to edit a
certain message/logo, whatever, so i click on it, and i get redirected
to my login page. after the admin logs in, he gets redirected to the
homepage - i couldn''t
2006 May 14
3
hi all
Not much I can say except that I am very excited to enter this new
world(solely for me of course, kind of late) of rubyonrails.If anyone
has any patience or just plain kindness to help me on my first steps
(leaps?) , I would greatly appreciate any links, references, tips,
hellos, or whatever else is offered.
Thanks ahead of time,
Shai Rosenfeld
Octava
I
-------------- next part
2006 May 28
8
a newbie question, if possible to help
i was wondering if anyone can help me form a very simple "if" statment
in the controller...
i did a usual scaffold for table ''pages'', and everything is working out
well, i did the main site ''backbone'' and all, and everythings
good....the thing is, now i need to make sure that the site-admin does
not have the possiblity to destroy page 1 or page 2.
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello,
i simplified have a news model, a news category model and a news
controller.
my _news.rhtml partial renders a single news entry.
in my controller there are the actions show and show_category.
if the "show" action is called, a single news item is rendered through
my partial with no errors.
if the "show_category" action is called, i get a NoMethodError while
displaying
2006 May 01
1
Show/Hide with AJAX
I''m trying to implement a show/hide details function.
I have the show part done, but I''m not sure how to get it to hide.
My app looks like this so far:
View:
<%= link_to_remote "Show/Hide", :update => "details", :url => { :action
=> "show", :id => leif } %>
<p id="details"></p>
Action:
def show
@leif =
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 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account
2005 Dec 27
1
Rails/Ajax question from a newbie (to both)
I''m trying to get a Rico LiveGrid working, and I am a bit stuck on how to
accomplish this.
I have a page that successfully queries a controller and updates a <div>
containing a table. I have two
versions of the action; one uses the render_partial to return a rendered
version of that table, and the
other returns an XML-RPC document, and this is where I hit a snag.
The Rico LiveGrid
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def
2006 May 30
2
Hi , Anyone From Singapore?
Hi All ,
I been trying out RoR and reading the mailing list for
sometimes and wondering if anyone of you guys from Singapore ? I am
thinking of a meetup or something for RoR fans here. If you are , pls
contact me by my email ? Thank you very much.
regards
billy
PS : Apology for sending non-ruby question email in the list.
2010 Mar 20
0
Problem with videos on heroku
Hi,
I have recently moved my RoR app on the Heroku platform, and almost
everything works fine apart from the videos. It works fine when my app
runs in local but not on heroku. This is the error log I''m getting, if
anyone knows where it can be coming from:
Processing VideosController#new (for IP at 2010-03-20 04:32:09) [GET]
Session ID: 6abecf60c3369d7c7029e366bb801e08
Parameters:
2007 May 30
2
ActionView::TemplateError
Hi,
I have a strange problem that only occurs on the production server.
I''ve been banging my head for hours trying to figure it out with no
success. Below is a copy of the error from the production log.
ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/
public/../config/../app/models/image.rb to define Image) on line #6 of
app/views/admin/design/_record.rhtml:
3:
2006 Feb 02
4
ajax insertion into a form
After an ajax insertion in the dom, it seems the browser don''t
refresh its knowledge of the page.
The source of the page is identical after the insertion, whereas the
display is correct.
The ajax insertion is used to add an input field. The added fields
are ignored by the submission of the form.
Isn''t it possible to do that, or maybe there''s a problem in my code
2007 Nov 03
1
Specs for Helpers that call render
The helper spec I am writing tests a helper method that calls render.
##
module HelperHelper
def render_partial
render :partial => ''partial''
end
end
##
The helper spec.
##
describe HelperHelper do
it "should render partial" do
render_partial.should_not == nil
end
end
##
The output generated
##
$ spec spec/helpers/home_helper_spec.rb
.F
1)
2006 Jun 26
0
Using a partial multiple times in a view
Hi,
im trying to execute multiple cmds in a method that use the same view
which
has multiple calls to the same partial inside it.
However i cant get it to work correctly, so any help here would be
appreciated
heres the controller code
def index
cmd_df = "df -Ph"
exec_cmd(cmd_df)
cmd_sys = "uname -a"
exec_cmd(cmd_sys)
end
private
def exec_cmd(cmd)
2007 May 05
0
integration with movtable
Hi,
I''m trying to integrate movtable to display some data. The file that
lists out the partials to display the data looks like this:
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<title>Movtable - List</title>
<%= stylesheet_link_tag
2005 Jun 29
2
Complex helper with block help
Hi everyone,
I am writing a helper function that takes a parameter and block and
wraps some HTML around it. e.g.
def box_with_caption(caption, &block)
data = capture(&block)
buffer = render_partial("helpers/box_caption", :caption =>
caption)
buffer << render_partial("helpers/box_data", :data => data)
buffer
end
however, when I attempt the following,
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
2000 Apr 05
2
My first R-program
Sorry, I pasted the wrong file in earlier... this is the correct one:
pValCalculator(b, n=20, m=20)
{
ind <- 1:min(c(n,m))
prob <- (1-pnorm(b,sd=std*sqrt(ind)))
prob1 <- sum((n-ind+1)*(m-ind+1)*prob)
prob1
}
inputData <-
scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1
= "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score