Displaying 20 results from an estimated 600 matches similar to: "Autocomplete text-field version of dynamic select menu?"
2012 Mar 28
1
collection_select
_form.html.haml
= f.label :Select_Brand, "Select_Brand<em>*</em>".html_safe
= collection_select(:brand_name, :brand_id, Brand.all, :id, :name,
:prompt => "Select a Brand" )
show.html.haml file
%table
%tr
%td
Brand_Name :
%td
= @message.brand_id
After writing this code I am not able to see the brand name. Its not
giving any error but
2010 Jul 13
1
NoMethodError in UsersController#show
So I am getting the error
NoMethodError in UsersController#show error
undefined method `feed'' for nil:NilClass
{"authenticity_token"=>"zalkdfsjfksjd;lfs;lfksdkf/2tPzo=",
"login"=>"session",
"password"=>"admin",
"commit"=>"Log in"}
Why is login being set to "session"? Instead of the
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance.
Although I have many years of experience in general, including cross-
platform processing, I am not an HTML/Javascript programmer. As a
result, I do not have certain specific baseline skills and/or knowledge
that are presumed in the Rails and Ajax documentation.
I am experienced with DOM manipulations, so the bare mechanics of
manipulating the browser GUI via Javascript
2005 Oct 16
1
prototype help needed - how to get started
Hello,
Despite Sergio''s excellent documentation on prototype, I’m still struggling
to get started. I hope somebody is able to help me a with a little example
to get me going.
Please see html code below – I have this little navigation bar and I like to
add some events/functions to the buttons.
Let’s say, onmouseover, I like to change e.g. the background-color of the
button and
2012 Nov 01
2
SyntaxError in Posts#index
getting this error
compile error
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''=''
...w Goal", new_post_path, class="btn btn-success" );@output_bu...
^
/Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND
''); @posts.each
2007 Feb 27
1
Billing Telephone Number (BTN)
I have Asterisk setup with two PRI's one going to my telco and the
other going to a Norstar Meridian system. The Norstar Meridian is
sending a BTN number that needs to be passed to the Telco. Is there a
way to pass the BTN as a variable in the dial plan? Like
CallerID(num)? What is the variable for BTN if so?
Many Thanks.
--
***
Forrest Beck
IAXTEL: 17002871718
jonforrest.beck@gmail.com
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the
picture as it wasn''t necessary to include to the mailing list so
everyone can hear the general techniques),
I recently had a very similar problem with my project. The problem
arises because whenever you move the mouse to ANY element, the previous
element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the
!= should be ==
________________________________
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan
Gahl
Sent: Wednesday, January 11, 2006 2:28 PM
To:
2006 May 30
0
problem with effect toggle - please help
Hello,
I''m having the following code below - when I click on the button in order to
toggle a div, it is working when the div is visible - after it is toggled
once, the beforeStart stuff isn''t executed anymore!
interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'',
{
to this: Effect.toggle(this.bContentWrap, ''slide'',
2006 Apr 17
3
Please help : how to link_to() and css styles ?
Hello, I''m having hard times on a very simple problem : how to provide a
css class to a link_to tag ?
I''m using this :
<%= link_to ''Cancel'', :action => ''list'', :class => ''btn-cancel'' %>
and RoR produces this :
<a href="/gallery/list?class=btn-cancel">Cancel</a>
I''ve read the doc
2009 Sep 24
4
Action Controller ::MethodNotAllowed
Hi,
Iam getting the following error
ActionController::MethodNotAllowed
Only get, put and delete requests are allowed.
Actually, Iam trying to have multiple actions for a form to create
new record. The actions for the form are cancel, save, publish and
preview.
here''s the config/routes.rb file code snippet for the relevant
controller - Events
map.resources :events, :member =>
2012 Sep 22
1
formtastic does not save at all
Rails 3.1.3
I am using Formtastic gem in order to deal with multi-select
dependencies.
<%= semantic_form_for(@give) do |f| %>
<%= f.inputs do %>
<%= f.input :departure,
:collection => Departure.find(:all, :order=>:city).collect{ |c|
[c.city,c.id]},
:required=>true %>
<div id="destinationCity">
<%= render :partial =>
2007 Apr 27
2
mdiclient windows do not always activate on click
I just noticed that MDIClient windows do not automatically become
current when they receive a mouse click, but only do so if the click
happens inside of an enabled widget. This may very well be correct, but
if so then what is the right way to handle it, if you want a more
familiar window-manager behavior (click to focus)?
For example, if you change the mditest.rb example like so...
---
2004 Jun 19
4
FlexGridSizer question
=begin
I am trying to understand how FlexGridSizer works and I have written a small
test application using the latest wxRuby 0.4.0 on Win XP (Home).
I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button.
I have tried all combinations of ALIGN flags, but I either got the text sticking
far too close to the left edge of
2011 Dec 22
1
RGtk2: How to overlay a gtkDrawingArea with a button or any other widget?
I try to overlay a plot inside a gtkDrawingArea with a button (or any other widget).
I tried to put both into a gtkFixed container.
But this does not work, no printing occurs.
Does someone know a solution?
What I tried:
w <- gtkWindow()
w$setSizeRequest(400,400)
fx <- gtkFixed()
da <- gtkDrawingArea()
fx$put(da, 100, 100)
asCairoDevice(da)
par(mar=c(0,0,0,0))
plot(1:10)
btn.1
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying
to make a rails application after watching Michael Hartl''s tutorial and
when i fill data manually and submit it nothing happens and nothing records
in the Mailers table and I am facing the following error:
Failures:
1) Mailer pages mail us with valid information should send a mail
Failure/Error: expect
2018 Jun 15
2
CentOS7/Mate Qt bugs/features?
We have recently migrated from CentOS6/Gnome to CentOS7/Mate - and have
noticed 'glitches' with some Qt applications that appears to be linked
to the 'org.mate.Marco.general' 'compositing-manager' setting - and
wondered how we 'fix' the issue ...
Below is a PyQT4 python script that shows the issues:
1. With 'compositing-manager' set to 'true' (I
2008 Jun 12
4
Background thread - entension code - switch contexts
Hi,
I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++
and used swig to load it into Ruby interpreter, which works great. The
extension is an often long executing algorithm, and I''ve noticed that if
I fork a new Ruby thread in button clicked event, and in this thread run
the algorithm the application freezes for the time of execution. I have
looked through the
2012 Mar 10
6
Cartographer shows correct info box BUT over wrong marker
Hi guys (and gals),
The code formatting is so nice on SO.com, so I thought I''d just share
my post in hopes that someone from the group can help.
http://stackoverflow.com/questions/9643786/cartographer-shows-correct-info-box-but-over-wrong-marker
Feel free to answer back via email if you don''t have an SO account.
Thanks!
Abram
--
You received this message because you are
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for
form_remote_for?
I''d like to do this :loading => "Element.show(''form-indicator'') and
this :loading => "Element.hide(btn-submit'')
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: