Displaying 20 results from an estimated 40000 matches similar to: "autocompletion key value"
2008 Jul 22
2
ActiveRecord Associations issue
Hello all and thank you for reading this message.
I am new to RoR, and ruby too, but i am quite excited about it.
I am developing a RoR project and with active record associations in
the following
manner
# Tables (all tables have only one record)
CREATE TABLE `webcars_development`.`cars` (
`id` int(11) NOT NULL auto_increment,
`model_id` int(11) NOT NULL default ''0'',
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
I have a form for submission of brand, model, and style. Style
belongs_to model, and model belongs_to brand. The form is actually a
style submission form, but allows users to create new brands or models
as well, should they not exist.
What I want is for the autocomplete for ''model'' to populate when an
object for ''brand'' is selected in the first text field..
2006 Mar 28
3
[tip] making cached pages look dynamic
Hey
I just launched a new release of www.strongside.dk based on rails 1.1.
The site is in danish so it wont make any sense to most of you.
However, here at technique I want to share with you.
Some of the pages on that site requires a lot of calculations, but the
data is actually static. So these pages are cached.
However, when a logged on user is viewing a cached page, we still want
to
2006 Mar 28
4
1.1 won''t install!
I get this result in Terminal (10.4.latest)
pb12-olivier:~ ambush$ gem install rails --include-dependencies
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
ERROR: While executing gem ... (Errno::EACCES)
Permission denied -
/usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
2006 Feb 24
6
Changes to Class File Not Being Recognized by Webrick
Newbie, having good luck with Dave Thomas'' book ''Depot'' application
until I discovered that changes to one of my .rb class files are not
being recognized until I bounce the webrick server.
Any ideas on this? Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 24
3
generating a controller that inherits from a base controller
how can I generate a new controller that inherites from another bas
controller?
using: ruby/script generate myNewController command?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 02
5
scriptaculous autocompletion LIMIT and ajax vs. local
Hi,
I am using scriptaculous ajax autocompletion (not local autocompletion).
I have 2 questions:
1 - The database query being sent to the server always has LIMIT 10. I
don''t want to have a limit, but I just can''t for the life of me find
where this limit is set in the code. I did see "choices: 10" in
controls.js but that''s for autocompleter.Local, which I
2005 Dec 16
1
jedit rhtml autocompletion
Does the jedit ruby plugin have rhtml autocompletion??? (autocompletion
of embedded ruby code and html tags...)
thanks.
2006 Jul 22
1
InPlaceEditor with Autocompletion
Hi
Rails AJAX controls are very handy, and the InPlaceEditor is probably
one of the easiest and most neat of them all. But, it doesn''t do
autocompletion. I''ve rectified that situation. The plugin provides a few
new helpers and a new JavaScript-file that extends the
Ajax.InPlaceEditor with local and remote Autocompletion features. So,
just install the plugin, include the
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi,
when I define a db column to be non-nullable or of length 20 or as
numeric, I would expect rails to validate that, but that doesn''t seem
to be the case.
Any idea why that is? The metadata is accessible, at least in the mysql case.
I am using rails 1.0 with mysql 5.
Cheers,
Mariano
2006 Mar 14
5
GROUP BY and SUM
I have orders, order_items, and products.
I want to collate several orders so that I can get a SUM of quantities
ordered for each product etc.
Can I say something like (the below gives an error on :sum, and ignores
:group)
OrderItem.find(:all, :sum => ''quantity'', :group => ''product_id'',
:include => [:order, :product])
I want to get back a
2009 Oct 24
1
Inheritance Problem
Hello.
I have a question to inheritance in Rails(2.3.4).
I have this three models.
class Vehicle < ActiveRecord::Base
end
class Car < Vehicle
end
class RallyCar < Car
end
And this Migration:
class CreateVehicles < ActiveRecord::Migration
def self.up
create_table :vehicles do |t|
t.string :name
t.string :brand
t.string :type
t.timestamps
end
2006 Feb 07
3
Creating a new object with a passed in parent?
I have a simple object, Article, which has_one :parent of the same time.
On my Show page for a given article there will be a "new child" button
which will pass the current :id (or the current Article itself) to the
new form. What is the proper way to hide a reference to this parent in
the form so that when it is submitted back, the create method knows what
to do with it?
2023 Mar 31
1
Autocompletion for the new S3 generic @ method?
Hello,
In the current R-devel @ is S3 generic, so we can do things like - for example - use it to extract matrix rows by name:
.S3method("@", "mm", function(object, name) object[name,])
m <- structure(matrix(rnorm(20), ncol=2), dimnames=list(paste0("row", 1:10), paste("col", 1:2)), class="mm")
m at row1
However, seems like
2017 Oct 26
2
Autocompletion support for llvm opt flags
Hi all,
Thank you for your feedback at the dev meeting.
We are planning to add --autocomplete flag to llvm-opt, which enables us to
make a new command-line autocompletion for opt when -mllvm is provided to
Clang command invocation.
There are command-line option's namespace opt::cl in CommandLine.cpp, which
provides useful function for parsing options. However we also have OptTable
in
2006 Feb 21
29
script/console
The agile book says "You can inspect variables, set values, add other
breakpoints, and generally have a good time".
This is very sweet and totally useless. For example, I want to see the session variable,
the cookies variable and so on. These names are unknown. I think I guess that the things
that are available depend on where you put the breakpoint() call. I''ve tried a
2006 May 23
3
comma separated autocompletion, like in Google Bookmarks, GMail, ..
Hi list,
Hi all,
In Google Bookmark and GMail -f.ex.-, autocompletion would help you
enter multiple values in 1 field, separated by commas.
Is there such a solution available somewhere?
This is necessary for the acts_as_taggable plugin, to let people enter
many tags in one file
ex: "rails, ruby, plugin"
but with the help of some AJAX magic. Without it, people have no clue
about
2006 Aug 16
5
Autocompletion
Hi there!
I may be guilty of not doing my homework, but still, I've searched. I'm a
relative newcomer to R (my forte is at present MATLAB, but for various
reasons I'm trying to get literate in R). My question is: Is there an
autocompletion feature buried somewhere in R?
All the best
Óttar
[[alternative HTML version deleted]]
2023 Apr 01
2
Autocompletion for the new S3 generic @ method?
I agree, this is a good idea and would be very helpful in interactive contexts.
I have a draft patch implementing this feature here: https://github.com/r-devel/r-svn/pull/122
(Append ?.patch? to the URL to get a raw patch.)
Regards,
Tomasz
> On Mar 31, 2023, at 2:11 PM, Karolis K <karolis.koncevicius at gmail.com> wrote:
>
> Hello,
>
> In the current R-devel @ is S3
2006 Feb 16
5
Firefox and IE performance with Rails App
In my rails application, certain computers were having huge problems.
There were certain pages that were exceptionally slow, even to the point
of timing out. Other computers did not have a problem. I finally found
that Firefox was the difference. When using Firefox on those computers
it works fine. The slow pages were typically posting a form with a
couple hundred fields.
This behavior was