Displaying 20 results from an estimated 7000 matches similar to: "mail list question"
2006 Jun 28
3
couple newbie questions
Hello Folks,
I am starting out with RoR and just browsed through Dave''s book ? couldn''t
stop reading. I started building a prototype to get better hands on
experience and I have run into two simple issues that I am hoping will be a
quick answer for some of you experts out there.
*Issue 1:*
>From within a "companies" controller and list_companies.rhtml view
2006 Jul 08
2
Creating/Saving dependent objects
Folks,
Am new to RoR and am building an example to get myself familiar. I am
running into a simple issue while creating a user registration page.
I have a User and Address models defined as below (partial/relevant code
included below). User has_one address and Address belongs_to user. I have a
foreign key defined in address table that refers to user(id)
In a form I take in username, password,
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a
terrible time getting the models set up correctly. I have an order
table that has a primary field named order_number. I have a name table
with a primary of item_number. These two tables are liked by the
item_number and the order_number, but not as you might think. If the
order_number is 2500, then each entry in
2006 Aug 04
14
Printing an Order
Can Rails be used for printing an order in a store application that has
arrived?
--
Posted via http://www.ruby-forum.com/.
2006 May 17
8
How to implement full-text search with OR just like google?
The current full-text search will return the AND collection results,for
example,if we use Article.search("aa bb"),then the articles that include
"aa" and "bb" in the fields will be returned,how to return the articles
that include "aa" OR "bb" effectly? A stumb method is to setup two
queries respectly and collect them together with remove the
2006 Jan 16
3
37s style modularization ?
Hello all,
I remember and have lost a link to the blog on hints about 37s
modularization of basecamp, backpack, etc.
Anyone remeber this and can remind me of the link?
Thanks !
--
------------------------------
Forget the icing. Bake the cake!
- the epicentered developer
------------------------------
Peter Fitzgibbons
-------------- next part --------------
An HTML attachment was
2006 Feb 01
6
Little Ferret Problem
I''ve implemented Ferret, using the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
I get no errors in the application at all... however, I always get 0
results.
I built an index off of some data, it exists in the index/ directory, the
form submits find... etc...
Just 0 results... all the time :)
I confirmed the data from my models is being put
2006 May 23
13
acts_as_ferret 0.2.1 segfault
Hi,
I just installed via script/plugin from the stable svn tag. (Revision 54)
I''m running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no
compilation problems)
I put together a simple model to test it and I''m getting a segfault.
The model:
class Report < ActiveRecord::Base
acts_as_ferret :fields => [:title, :name]
end
$ script/console
Loading development
2006 Jan 01
7
[ ANN ] Hieraki2
Happy new year! Hieraki 2.0.0 is released.
You can download Hieraki2 from rubyforge.org as tgz or zip
(http://rubyforge.org/projects/hieraki).
Hieraki2 has a new wiki engine that ships with more than a dozen new
features:
* everything-is-a-wiki-page (TM)
* all pages are under version control
* access control list
* stay in full control of the tree structure by cut and pasting
2006 Jul 19
4
Ferret Indexing
Does ferret only index, when you create, or udpate a record?
Is there a way to make it index prexisting records?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Oct 19
1
link instead of submit_tag?
How I replace:
<%= submit_tag "Search" %>
with a text link? (like link_to or so?)
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2006 Jan 16
2
ruby embedded code replacement for onclick in link?
Is there a ruby embedded code replacement for something like this?
<a href="#" onclick="window.open(''http://192.168.78.12:3000/portfolio/show/<%=
item.id %>'', ''test'', ''width=660, height=500,resizable=no'')">
<%= image_tag item.image_url, :size => ''200x150'' %></a>
Thanks,
Dan
2006 Jan 11
2
Table prefix
Hi everybody,
is it possible to override standard RoR table nomination/pluralization
to include a suffix? I have some tables with usr_ prefix but i would use
"real" table name in model naming. For example i have table
usr_accesslogs; in normal use i should create a model called
UsrAccesslog instead Accesslog.
Is it possible to do this??
Thanx
Davide
2007 Apr 27
4
how to evaluate a dynamic variable?
Please help me evaluate a "dynamic variable" as show in the code
snippet below.
# regular variable
a = c(1,2,3,4)
# dynamic variable set at runtime
DV = "a"
eval(DV)
--> a
eval(eval(DV))
--> a
# what I want
something_goes_here(DV)
--> 1,2,3,4
Can someone teach me how to do this? Thanks very much.
- Bobby
2006 May 22
7
how to index the result of any instance method
Hi,
One of the AAF features is to be able to index results of methods, but I
haven''t seen anywhere how to do this. I have a method that returns the
full text of a file and I''d like for this to be indexed. Can anyone out
there help me out on this one?
Tom
--
Posted via http://www.ruby-forum.com/.
2006 Feb 27
3
form questions
I have a very simple form that looks allows an input for an error code
and then give the show page from the scaffolding if the error code is
in the database and a notification on the list page, again from the
scaffolding if not.
Here''s the form:
find.rhtml
<h1>Find error</h1>
<%= start_form_tag :action => ''search''%>
<p><label
2006 Aug 04
4
cannot convert String into Integer
Hi, I''m trying to implement a live search that supports searching for
multiple words. So for example, if I type "ruby rails" in the search
field, I would return results that have either the word "ruby" in them
or the word "rails" in them. However, this is just a background as to
what the following code is trying to do and might not even be needed to
fix
2006 Feb 19
5
can you give a answer?
when i tail -f my log:
i find this:
"Completed in 0.00233 (428 reqs/sec) | Rendering: 0.00005 (2%) | DB:
0.00118 (50%)"
i am sure, this request didn''t access DB. but why here DB is (50%)
it''s log wrong or my fault?
regards
--
Posted via http://www.ruby-forum.com/.
2006 Jul 27
7
Newbie question---
I wrote a ruby script that parses a file into key-values like so:
class Parser
table = { }
IO.foreach(''Localizable.strings'') { |line|
if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x
table[ $1 ] = $2
end
}
end
I want to store the key-values in different colums on my database so
that when I enter a key, it gives me the corresponding value...how
2006 Aug 07
4
multiple habtm joins on the same two tables
i have a taskmanager type of project that i am working on, where i need
to separate joins on the same two tables. i need one join for users that
are assigned to the task, and another join for who has read the task, so
they can tell which ones are new.
any suggestions on the best way to accomplish this?
thanks
--
Posted via http://www.ruby-forum.com/.