Displaying 14 results from an estimated 14 matches similar to: "component/ajax variable access problem"
2006 Jun 16
3
us_states plugin
Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?
Thanks,
jeremy
2005 Oct 10
0
[BUG ??] 'uses_component_template_root' problems with implementation in component
Hi all,
I hope this will reach those that can help or change things, IF it is
a bug/''feature'' issue. At least it seems like it to a newbie like me.
BACKGROUND::
I have a basic html file in [ /app/views/layouts/application.rhtml ]
that contains this
<html>
<%= render ''shared/header'' %>
</html
I then have a component [
2006 Feb 19
2
Sortable list (scriptalicious) and updating database
I have made a sortable list which is sortable by dragging & dropping the
list elements. It works, but the order of the elements will not be
updated in the database. Hopefully someone could help me, or tell me
what I''m doing wrong.
Thnx!
Rgds,
Eric
Controller: album_controller.rb
class AlbumController < ApplicationController
def show_sort_album
@photos =
2007 Jun 21
3
disappearing .pid files
Hello,
I''m running mongrel_cluster and have been using it successfully for
quite a while now. However, today I ran a "cap deploy" and started
seeing the following error:
!!! PID file /var/www/apps/jco/shared/log/mongrel.8013.pid does not
exist. Not running?
for each of the mongrels that should start up.
I''ve googled for solutions but haven''t found any
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
2017 Sep 24
1
Volunteers for Hackers Lab Needed!
All,
We need volunteers for the Hacker’s Lab at the upcoming 2017 LLVM Developers’ Meeting! The Hacker’s Lab is for small groups to form to discuss topics or work on problems. Please let me know ASAP if you will able to volunteer so I can add your topic to the online listing and make appropriate signs.
The Hackers Lab is split into 1.5 hour sessions. During each session, the Hackers Lab will
2006 May 29
0
using components to reuse code
the following is the code of the controller, under the dir
components/test/:
class Test::GroupsManController < ApplicationController
uses_component_template_root
def add_to_group
@account = Account.find_by_nick(@params[:nick])
# render :text => "#{session[:account_id]}
#{Group.find(session[:group_id]).owner_id}"
if (session[:account_id] ==
2006 Jan 14
0
testing template components
Hi,
I''m plowing through the template section of "Agile Rails", specifically the
stuff starting on P. 364. What is a good strategy for testing components?
My initial thought is to mimic the Rails application "test" directory. No
problem.
Next copy the setup method, and set it up like so -
class SidebarControllerTest < Test::Unit::TestCase
def setup
2006 Feb 04
0
Cartographer plugin problem: was: ArgumentError when installing plugins with -x
On 2/3/06, jeremy*pinnix <jpinnix.alt@gmail.com> wrote:
> This is the second time that I''ve tried to install plugins where this
> error has occured. It only occurs when I use the -x flag.
>
>
> What is the problem?
>
I found that the cartographer plugin has been moved to rubyforge. But
I am still getting an error trying to install it.
script/plugin install
2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello,
Maybe this is super-trivial...
I need to have a list of links on the left hand side of my application,
for *every* single page.
So, I''ve created a layout called "main" (main.rhtml) under
view/layouts, and included >layout "main"< in pretty all of my
controllers.
main.rhtml has, amongst all the other HTML stuff:
<%= render_component
2006 Jan 13
1
file_column - how to test for empty column?
I am using the excellent file_column, but have run into an issue.
I am wanting the user to be able to *not* upload an image if they so
choose. Then I am trying to determine if that column is empty or not,
and display a generic image if that column is empty.
I have tried both of the following code blocks:
<% if @newsentry.image -%>
<%= link_to(image_tag((url_for_image_column
2008 Jul 29
2
FW: Installing BRugs
A funny thing happened when I wanted a student of mine to install Brugs.
Using the InstallPackages in the windows version, firts gives an erro, but trying again works flawlessly.
R version is 2.7.0 on WinXP.
Any explanation?
Bendix Carstensen
______________________________________________
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2-4
DK-2820 Gentofte
2006 Feb 04
0
ArgumentError when installing plugins with -x
This is the second time that I''ve tried to install plugins where this
error has occured. It only occurs when I use the -x flag.
script/plugin install -x
svn://cartographer.rubyforge.org/trunk/vendor/plugins/cartographer
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:675:in
`method'': wrong number of arguments (0 for 1) (ArgumentError)
from
2005 Dec 21
0
weird scaffolding error
I have generated a scaffold with controller ''Exclusive'' and model
''Exclusive''. when viewing /exclusive/list it brings up an error "while
trying to load the following files: exclusife.rb" Note the crazy spelling.
I''ve looked through all of those generated files, and nowhere does it say
''exclusife''. The table name is exclusives