Displaying 20 results from an estimated 200 matches similar to: "uses_connection plugin"
2006 Jun 16
3
Does HABTM support non "id" FKs?
Quick question. Say I have a geographical database with counties and zip
codes where counties have and belong to many zip codes.
zip_codes (id, zip_code)
counties (id, name)
When I create the association table, the Rails way says to do the
following: counties_zip_codes (county_id, zip_code_id).
However, given that zip_codes.zip_code is itself a candidate key, I
would much prefer to do the
2010 Sep 16
6
acts_as_solr plugin fate?
Just wanted to see if I was using the latest acts_as_solr plugin, but
the URL <http://acts_as_solr.railsfreaks.com/> takes me to a GoDaddy
domain parking page.
Anyone know what''s happened to railsfreaks, and more particularly
this plugin?
--
Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
twitter: @hassan
--
You received this
2009 Jul 31
2
Undefined method updated? for <model object>
Hi,
I have two model say-
ZipCode < ActiveRecord::Base
belongs_to :state_provinces
end
StateProvince < ActiveRecord::Base
has_many :zip_codes
end
if I do @zip_code.update_atribute(:city, "My City")
its giving Undefined method updated? for StateProvince
if I remove belongs_to specifier in ZipCode class then it work fine.
Any alternate solution??
Thanks
--
Regards,
Himanshu
2006 Jan 27
3
Problem setting multi-value cookie
I''m trying to set a multi-value cookie but for some reason it''s not
working. Any help would be appreciated.
cookies[:user] = { :value => {:email=>params[:login][:email],
:passwd=>params[:login][:passwd]}, :expires => 30.days.from_now, :path
=> "/login"}
--
Thiago Jackiw
2013 Jan 14
2
Who does develop the R core and libs, and how / where is it hosted?
Hello,
I saw Binaries, stable release-souzrces and daily snapshots of R, but
not something like a repository, visible for the public (like on githb for example).
How is the R development handled, what repositories / source code versioning tools
are used, who are the developers?
And is there something like a plan with future goals,
which are planned for the next releases?
Are there areas, where
2008 Apr 26
1
Best cron job method for email notifications?
There are so many ways to do cron jobs in Rails (Backgroundrb, script/
runner, etc.) but I am wondering what would be the best to use in
production, just for sending out email/SMS notifications? For example,
an email automatically gets sent a day before the due date of a
project milestone.
Thanks for the help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2012 Oct 26
1
using match-type function to return correctly ordered data from a dataframe
I am regularly running into a problem where I can't seem to figure out how
maintain correct data order when selecting data out of a dataframe. The
below code shows an example of trying to pull data from a dataframe using
ordered zip codes. My problem is returning the pulled data in the correct
order. This is a very simple example, but it illustrates a regular problem
that I am running into.
2007 May 20
0
Urgent :: File Object problem
disclaimer: Im not a developer, in fact I know very little of Ruby.
I had this script made for me by Endax, LLC. I have run into problems
with the script and they are unable/unwilling to help resolve the issue.
The script was working fine for a while, but now when I run it I get the
following error in the Ruby editor:
>ruby realtor_scraper.rb
realtor_scraper.rb:54:in `initialize'':
2009 Nov 06
0
Nested objects not propagating from view
I thought I had this fixed, but apparently not. It works okay from the
console, but not from the view. I have the following:
# partial schema
create_table "users", :force => true do |t|
t.string "login", :null => false
t.string "first_name"
t.string "last_name"
t.string "email", :null => false
2006 Jul 18
1
Need Help Updating Records
This is a stupid question I know, but it is driving me crazy - I am
missing something simple and basic here. I am trying to update missing
zip codes on a data table. I am doing something incorrectly as the data
in the Source table is not being updated, only the value in the array is
changed. How do I get this to update the actual DB record instead?
def add_missing_zips
#find all records in
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following
format.
state city zipcode
I like pizza 0 0 0
I live in Denver 0 1 0
All the fun stuff is in Alaska 1 0 0
he lives in 66062
2006 Jul 21
0
[Slightly OT] Need Query Help
I need to select 1 record from each client. This record has the charge
with the most severe charge type (lowest charge_type_id). How do I go
about this?
I have been using a find_by_sql query out of the client.rb that looks
like:
SELECT c.f_name AS f_name, c.l_name AS l_name, c.gender AS gender,
c.race AS race, c.dob AS dob, c.address AS address, c.city AS
city,
c.state AS
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search.
I want to display schools that near a particular zipcode. I have no idea how
to do this. It will be great if anyone can point me where I could find info
--
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
Education Through Collabration
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention
of various map packages and done an R-site search, but
have been unable to find direct resources for creating maps
of the US that are colored or annotated or ... by zipcode
data.
For example, create a map of the US and color each zipcode
region by its population using two vectors z,p containing the
zipcode and population,
2009 Apr 16
0
how to convert the find_by_sql code to the find code
I want to convert following query into pure ruby one i.e. by using find
@us_state_sales=SalesReport.find_by_sql("SELECT z.state,
sum(s.royalty_price) as royalty_price, sum(s.units) as units FROM
sales_reports s, zip_codes z
WHERE royalty_currency = ''USD'' && z.zip_code=s.postal_code GROUP BY
z.state ORDER BY royalty_price desc LIMIT 10")
i try something like
2006 Jun 18
3
ActiveRecord Help - Not finding Data
Hello,
I''m farily new to RoR and am having a problem trying to retrieve data
from my database. Here is the code from my controller:
def index
zip = params["zip"]
@zip1 = Zipcode.find(:first, :conditions => ["zip = ?", zip])
lat = @zip1.latitude.to_f
long = @zip1.longitude.to_f
radius = 50
@bookstores = Bookstore.find_by_sql ["SELECT * FROM
2007 Nov 07
1
is xapian the right solution for me
hey together,
i am evaluating a couple full text solutions and just found my way to
xapian. i need to build a search for community users. currently i got
about 500.000 users and the search just stresses my normal RDBMS too
much. i just read the docu but it couldnot answer all of my questions.
it would be nice if someone could just tell me if xapian covers
everything i need.
needs:
->
2006 Apr 22
2
Form.serialize problem
I''m sure I''m missing something dumb but I cannot get Form.serialize to
work. I have an alert in the function as a debug to show me what''s
supposed to be the serialized line of values but it always shows
nothing. Can somebody show me what I''m doing wrong? Thanks in advance.
function submitprofile() {
var url = "/profile/submitprofile.html?";
2006 May 08
0
ZipCode Search
I''ve looked through the messages regarding implementing a ZipCode search
and I have a few questions to make sure I have my head wrapped around
this.
Here''s what I have. I have a database table called zipcodes with the
following info (for example)
30310 Atlanta GA 33.727807 -84.41983 -5 1
That''s zip, city, state, latitude, longitude, timezone, and dst.
So when a
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi,
I use ruby console to experiment acts_as_ferret, but I ran into file
rename error when I try to rebuild index after doing a search.
is this normal? I am using Ferret 0.10.9 in windows XP.
Loading development environment.
>> Address.rebuild_index
=> {}
>> Address.find_by_contents(''US'')
=> #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,