Displaying 20 results from an estimated 20000 matches similar to: "in_place_edit_for, multiple attributes?"
2007 Dec 11
2
in_place_edit_for into which plugin?
The docs state that in_place_edit_for has been moved into a plugin for
Rails 2.0:
Module ActionController::Macros::InPlaceEditing::ClassMethods
"DEPRECATION WARNING: This method will become a separate plugin when
Rails 2.0 ships."
and the error messages seem to bear this out:
"undefined method `in_place_edit_for'' for FaqQuestionController:Class"
Anyone know which
2007 Dec 21
1
in_place_editor not working for Internationalization
I''m trying to implement internationalization in my app. I followed
the instructions on the Globalize example (http://wiki.globalize-
rails.org/globalize/show/Example+Application), using in_place_editor.
The translation works fine, however, I can''t get in_place_editor to
work to translate the strings.
My controller:
class Admin::TranslateController < ApplicationController
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There,
I''m trying to user fields_for inside a form_tag, but i can''t catch it
on my controller.
I just take some html code off to makes it easy to read
my view...
i''m using campuses_path(current_church, @campus) instead form_for
@campus, because my route is like
resources :campuses, :path => ":church/campuses"
<%= form_tag
2005 Nov 14
0
in_place_editor_field inside a partial collection
(I''ve already posted this to a quite unrelated thread. Sorry for those
reading this twice.)
Did anybody succeeded in using "in_place_editor_field" inside a
partial collection?
It''s working perfectly in a regular template, but the id part becomes
blank when it''s inside a partial collection.
article_controller.rb:
class ArticleController <
2006 Mar 31
13
validation with in_place_edit_for
i''ve got an in place edit text box for some of my fields. my model has
validates_presence_of for the field but nothing happens. it works fine
in the scaffold when using the edit page, but nowhere else.
anyone have a solution to this?
--
Posted via http://www.ruby-forum.com/.
2002 May 13
2
Problems with the rsync command line syntax for multiple files
I feel completely stupid for asking this question, but I have an
essential problem of getting the syntax right for synchronizing
multiple files. I am trying to use rsync to synchronize files
generated in one directory with our public directory our web server.
We have a number of files with the extension html so I have tried the
following command line:
rsync *.html
2006 Jan 13
0
Controller part of in-place editing
I''m doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section. I think I may have the view part
working right (at least, the editor pops up as expected) with this in my
view:
###
<% for link in @links %>
<tr>
<td> <div id="<%= ''url'' + link.id.to_s -%>"><%= link.url
2006 Jan 19
5
script.aculos.us and the in_place_editor
Hi there,
I''ve been trying incorporate the in_place_editor, but have had no luck
so far. I read the Ajax.In Place editor wiki on script.aculos.us which
was informing, but still left me wondering about a few things.
Here''s what I''m trying to do. A user has a profile page which lists
their name, age, homepage, etc... There is no form on this page...
it''s just
2006 Dec 11
0
auth_generator 2.0.1 undefined method `login_required' for ... ArticlesController
I am a relative RubNub and attempting to implement auth_generator v.2.0.1.
I am getting an "undefined method `login_required'' for
#<ArticlesController:0xb732c0b4>" error when I attempt...
http://localhost:3000/articles/new
Help would be appreciated.
My app/controllers/application.rb reads...
------------------------------------------------------------------------
2006 May 15
1
1 controller, 2 layouts
I am having an issue with a controller that needs to utilize two
different layouts, depending on the action. The entire app makes use of
the application layout, so I added this to my controller to use for all
of our reports:
class ReportsController < ApplicationController
layout "reporter", :except => :index
I was hoping that the layout would only be applied to all the
2005 Dec 15
5
Avery Lables, PDF::Writer or LaTex?
In a new app we are developing, we need to be able to dynamically create
a PDF and send it to the browser (inline with send_data). I have been
tinkering with PDF::Writer and love the simplicity and native ruby-ness
of it all.
However, one of the main uses for this functionality is to output a PDF
of addresses to be printed on Avery 5161 labels. LaTex seems to be
suited well for this, but it
2006 Jan 18
5
Perform action after in-place edit
I want to be able to call an action after performing an edit using the
in-place editor macro. I want to update multiple divs so I was
thinking about using an RJS template. However, I can''t figure out how
to trigger another action after the method created by
in_place_edit_for runs. Is there is an option on Ajax.InPlaceEditor
where I can inject some Element.update calls?
Thanks,
Shane
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
This has puzzled me for at least a week. please help.
It seems that if a model class has any other custom attributes besides DB
column attributes, and model class is not in /app/models/ folder, rails does
not load custom attributes after 1st time, only DB column attributes. only
way to see my custom attributes works is if model class has no module and is
under /app/models/, not anywhere else.
2006 Mar 10
1
Problem rendering components
I have an AccountsController that inherits from ApplicationController.
In ApplicationController I define a generic layout. In this layout I
render @title that is actually assigned in the AccountsController but
has a default value in ApplicationController.
In the layout template, I also have the standard contents_for_layout and
lastly, I have a render_component. The component called from the
2007 May 17
1
asterisk setup for church / conference call / speaker system integration
We have several people in our church that recently became disabled. I am
thinking of setting up an asterisk server and several phone lined so
that they can call in to church during services to listen to the service.
The phone lines at church are also used by our private school during the
week. So I am thinking that I need to setup a schedule so that the
lines used for the service will
2006 Apr 04
3
How to use in_place_editor_field ?
Hello, I really don''t understand how to use in_place_editor_field
In my controller :
class Admin::CategoriesController < Admin::BaseController
in_place_edit_for :category, :title
def list
@categories = Category.find_all
end
end
In the view list.rhtml
<% @categories.each do |c| %>
<td><%= in_place_editor_field :c, c.title %></td>
# snip
<%
2006 May 24
0
Routes recognition problem
Hiall,
I have two modules for my controllers containing the following files
/app/controllers/admin/new_controller.rb
/app/controllers/admin/list_controller.rb
/app/controllers/admin/sidebar_controller
/app/controllers/community/input_controller.rb
/app/controllers/community/sidebar_controller.rb
Each of those controllers is declared with the appropriate module like so
class
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
- changes to the form/style cleaning it up greatly
- changes to the controller fixing allowing nics/
networks to actually be saved (credit to Michel
Loiseleur for helping with this)
- very small test and indentation fixes
---
src/app/controllers/vm_controller.rb | 41 +++-
src/app/views/vm/_form.rhtml | 365 ++++++++++++++---------------
2009 Mar 13
1
More basic equivalent of TukeyHSD
This is a simple question, but I'm going on the supposition that the
only stupid question is the one not asked.
1. I have many sets of 5 proportions that are different from each
other (prop.test), and want to know which proportions are different
from each other. In other words, I want the equivalent of Tukey's HSD
test, but for proportions rather than anova.
Here is one of the
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
I've pulled out the no-longer-necessary remnants of the old way of handling auth and before_filters as well as fixing a couple bugs that had crept in along the way.
Unit test fixes for the refactoring will follow in a subsequent patch.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/controllers/application.rb | 46 ----------------