On Jun 15, 11:13 pm, Sarah Faulkner wrote:
> I'm on Win7
Last time I checked (which is at least 6 months ago now), the RoR
mysql adapter and mysql 5.1 did not play well together on Vista/Win7.
You may want to try version 5.0 before anything else.
--
You received this message because you are subs
Hi All,
$rails g controller Pages home contact
then, I go to http://localhost:3000/pages/home
I got
Routing Error
No route matches "/pages/contact"
How can I fix this problem?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group
Mike Montagne wrote:
> Abraham Tio wrote:
>>> cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
>>> gem install mysql --
>>> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>>> Greg Donald
>>> http://destiney.com/
>>
>> YUP. this works.
>
> newbie question...
>
> I was able to get an error f
What do you mean of URL hiding?? can you give an example??
On Jun 15, 9:19 pm, JuKuen wrote:
> Greetings friends,
>
> Please, take my apologies, if the question was asked before.
>
> I`m interested to find out, how to integrate URL hiding technology
> into Rails app.
> Any help will be helpful.
>
+1 friendly_id
You can see the gems "most used" in http://ruby-toolbox.com/
Regards,
Juan Jose Vidal
El 16/06/10 1:34, Simone R. escribió:
Hi everybody
I'm looking for a good permalink generator similar to this one
http://cubiq.org/the-perfect-php-clean-url-generator (but this is PHP)
I fou
Hi everybody
I'm looking for a good permalink generator similar to this one
http://cubiq.org/the-perfect-php-clean-url-generator (but this is PHP)
I found this gem that looks like is doing what i need ,
http://rubygems.org/gems/friendly_id
but if you have better suggestion or comments just let me
the batman wrote:
> <%= f.label :type %>
> <%= f.select(:type, ["original","print","other"]) %>
>
> I have a photos model and added a drop-down list to the form, when the
> option is selected, the correct parameters are passed but it is not
> saved to the database.
> I've googled this and looked a
anyone?
On Jun 14, 12:50 pm, Me wrote:
> I have aymlfile with ip info. When I try to do "host: Site['name']
> ['ip'] it is getting interpreted directly and it is saying Bad URI:
> Site['name']['ip']
>
> How do I get thedatabase ymlto interpret the Site constant? I can
> see the hash in the co
the batman wrote:
> <%= f.label :type %>
> <%= f.select(:type, ["original","print","other"]) %>
>
> I have a photos model and added a drop-down list to the form, when the
> option is selected, the correct parameters are passed but it is not
> saved to the database.
> I've googled this and looked a
Homebrew (http://github.com/mxcl/homebrew) is your friend for software
dependencies installation.
Here's a rough guide that gives the process:
http://samsoff.es/posts/running-rails-local-development-with-nginx-postgres-and-passenger-with-homebrew
Substitute mysql for postgresql and drop the ngin
Guys,
I added an address search function in an after_save on my Address
model. When you key in an address in the form, it tries to look up
the latitude, longitude using geocoding, and fill in two fields
(:lat, :long). But somehow it's getting stuck. When I comment out
the after_save call, it wo
Hello --
Please pardon my newness -- I'm just getting started with rails, and
I'm having some difficulty getting it set up with MySQL.
I am able to get the basic ruby server running (script\server). When I
created a new page (using script/generate controller about index), I
am not able to navigat
What ?
A totally free linux ( http://www.linuxmint.com/ Mint based)
http://www.virtualbox.org/ VirtualBox image, fully configured, with :
Ruby 1.8.7, RubyGem, Rails 2.3.5 and dependencies, several useful gems
Mongrel & Thin Rails servers
MySQL 5 (with phpMyAdmin)
ImageMagick, Xa
[b]where[/b]
all the stuff and documentation at virtualrails.org
[b]What ?[/b]
VirtualRails is a totally free linux (Mint based) VirtualBox image,
fully configured, with :
[list]
[*]Ruby 1.8.7, RubyGem, Rails 2.3.5 and dependencies, several useful
gems[/*]
[*]Mongrel & Thin Rails servers[/*]
[*]
or thome think like this: ActiveRecord::Base.establish_connection
Ivan Nastyukhin
dieinz...@me.com
On Jun 16, 2010, at 1:20 AM, Marnen Laibow-Koser wrote:
> Greg Ma wrote:
>> Hi,
>> I make a cron jobs and I would like to use ActiveRecord. but I have this
>> error:
>> /System/Library/Framewor
Greg Ma wrote:
> Hi,
> I make a cron jobs and I would like to use ActiveRecord. but I have this
> error:
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
> `retrieve_connec
:allow_blank => true
On Jun 15, 3:26 pm, J. Pablo Fernández wrote:
> Hello,
>
> Using shoulda, any ideas how to allow blank when having this test:
>
> should validate_uniqueness_of(:email)
>
> Thanks.
> --
> J. Pablo Fernández (http://pupeno.com)
--
You received this message because you are su
Hello,
Using shoulda, any ideas how to allow blank when having this test:
should validate_uniqueness_of(:email)
Thanks.
--
J. Pablo Fernández (http://pupeno.com)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, s
Hi,
I make a cron jobs and I would like to use ActiveRecord. but I have this
error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connection': ActiveRecord::Conn
Fearless Fool wrote:
> Okay - I'm stumped: is there a way to run unit tests without blowing
> away data preloaded into the test database?
>
> Details: our system uses a TimeDimension table -- think of it as a
> datetime that's been highly decorated with additional info, such as
> whether or not it
You'd use this library, altough you need a clickatell account...
http://github.com/lukeredpath/clickatell
El 15/06/10 18:30, chewmanfoo escribió:
To clarify: sending an email to one of these addresses, and getting it
trannsformed into an SMS message depends on that carrier's SMSC having
an em
Bill,
Yes, thanks, that indeed does the trick!
Best,
Lille
On Jun 15, 11:17 am, Bill Walton wrote:
> Hi Lille,
>
> On Tue, Jun 15, 2010 at 10:11 AM, Lille wrote:
> > But isn't there a technique for merging the data from the individual
> > forms and ajax submitting it all at once?
>
> Never tr
> Now the field_for method doesn't
> see the charges in a form_for and I don't know why... I'm almost
> there!
Silly me, forgot the: accepts_nested_attributes_for :container_charges
Well, it's hacky but it works. I'll report here if I run into other
troubles because of this trick.
Regards,
Gam.
Thanks, that what I was looking for. Just found it in the source code.
Works like a charm. Thanks Frederick.
On Jun 15, 12:34 pm, Frederick Cheung
wrote:
> On Jun 15, 5:05 pm, Dee wrote:
>
> > Thanks for replying, Hassan.
>
> > I don't think you're missing the point, and, yes, that's what *I*
>
I have added:
has_many :container_charges,
:class_name => 'Charge',
:conditions => {:type => %w(ContainerCharge
HandlingContainerCharge ShippingContainerCharge)}
With this, Rails remove the problematic ##AND ( ("charges"."type" = >
'ContainerCharge' ) ) ##. This seems like a big workar
Pale Horse wrote:
> I am, as stated in the subject, having an issue with a before_filter
> exception being ignored by the application.
>
> My Customer Controller:
>
> http://pastie.org/1005487
>
> My Application Controller:
>
> http://pastie.org/1005490
>
>
> I have a link to a forgotten_pass
On Jun 15, 5:43 pm, gamov wrote:
> Hi Rick,
> Of course I should have looked at the SQL query... and indeed, you are
> perfectly right, Rails adds a WHERE clause on type... and it has to to
> filter out the classes that are NOT involved:
> SELECT count(*) AS count_all FROM "charges" WHERE
> ("ch
Hi Rick,
Of course I should have looked at the SQL query... and indeed, you are
perfectly right, Rails adds a WHERE clause on type... and it has to to
filter out the classes that are NOT involved:
SELECT count(*) AS count_all FROM "charges" WHERE
("charges".container_id = 1) AND ( ("charges"."type"
On Jun 15, 5:05 pm, Dee wrote:
> Thanks for replying, Hassan.
>
> I don't think you're missing the point, and, yes, that's what *I*
> think it should be too. The problem is "item" is type
> ActionView:Helpers:FormBuilder, and therefore doesn't have a sku
> property. Or maybe /I'm/ missing someth
Greetings friends,
Please, take my apologies, if the question was asked before.
I`m interested to find out, how to integrate URL hiding technology
into Rails app.
Any help will be helpful.
Thanks in Advance
--
You received this message because you are subscribed to the Google Groups "Ruby
on
To clarify: sending an email to one of these addresses, and getting it
trannsformed into an SMS message depends on that carrier's SMSC having
an email gateway device, which is essentially some sort of SMTP server
which reads messages and makes an SMS message out of them. If the
carrier did not hav
This may or may not meet your requirements, but if you don't need 100%
certainty that the messages will be delivered, most mobile providers
have an email address you can send a message to. The message will get
forwarded as an SMS to the mobile device. I'm using this technique in
my app. Here is a l
Thanks for replying, Hassan.
I don't think you're missing the point, and, yes, that's what *I*
think it should be too. The problem is "item" is type
ActionView:Helpers:FormBuilder, and therefore doesn't have a sku
property. Or maybe /I'm/ missing something
(I tried to make that clearer by naming
I am, as stated in the subject, having an issue with a before_filter
exception being ignored by the application.
My Customer Controller:
http://pastie.org/1005487
My Application Controller:
http://pastie.org/1005490
I have a link to a forgotten_password action that, when clicked, gets
redirec
On Jun 15, 4:48 pm, the batman wrote:
> <%= f.label :type %>
> <%= f.select(:type, ["original","print","other"]) %>
>
> I have a photos model and added a drop-down list to the form, when the
> option is selected, the correct parameters are passed but it is not
> saved to the database.
> I've goo
<%= f.label :type %>
<%= f.select(:type, ["original","print","other"]) %>
I have a photos model and added a drop-down list to the form, when the
option is selected, the correct parameters are passed but it is not
saved to the database.
I've googled this and looked at the api but I'm not sure what
hi, can anyone help me. i want to create an url to invoke create action
of a controller. routes.rb has the routes. But i am getting error at
line 23. i have @user variable.
user_contact_path(@user.id)
I want generate url as : users/3/contacts to invoke contacts
controller's create action
--
Hi Lille,
On Tue, Jun 15, 2010 at 10:11 AM, Lille wrote:
> But isn't there a technique for merging the data from the individual
> forms and ajax submitting it all at once?
Never tried this particular scenerio, but the link_to_remote method
takes a :submit argument that will serialize and post al
Hi,
I have multiple forms on a page that can be sent individually via
submit_to_remote. I'd also like to offer the option of sending the
data from my several forms at once. Based on google searches related
to this, it seems the best approach will be to javascript something
that sends each the data
[Please quote when replying.]
Max Williams wrote:
> ah yeah, you'll need to require all of the module files.
No! Put them in app/models or in lib, where Rails will find them
automatically.
> Don't do this
> in your model though, do it in a file in config/initializers.rb.
No! If you need t
ahh sorry my bad. Im using rails 2.3.2 and ruby v1.87
--
Posted via http://www.ruby-forum.com/.
--
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-t...@googlegroups.com.
To unsubscribe from
On Tue, Jun 15, 2010 at 7:14 AM, Dee wrote:
> Explain how to display the sku and color in the form for each item?
> <% f.fields_for @shelf.items do |item_fields| %>
> <%# Want :sku here #%>
Maybe I'm totally missing your point, but shouldn't that just be, e.g.
Matt Royer wrote:
> I wasn't sure if this was the right way to accomplish this:
>
>
>
> format.js {
> render :update do |page|
> page.replace_html 'order_div', :partial => 'show_order'
> end
> }
>
>
Sorry, forgot to say that this is in my index action of my orders
controller.
I wasn't sure if this was the right way to accomplish this:
format.js {
render :update do |page|
page.replace_html 'order_div', :partial => 'show_order'
end
}
Apperently not, as it doesn't work. But can someone at least tell me if
I am on the right track? I've checked everywh
Hi,
Has anyone implemented NING login. Is there any API for this, I
googled a lot but couldn't find a solution for this.
could anyone provide some sample code or something like that.
Note: I need to login with NIng details into mysite.
--
You received this message because you are subscribed
thanks a lot ;)
--
Posted via http://www.ruby-forum.com/.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-
On Mon, Jun 14, 2010 at 11:10 PM, Hans Marmolin
wrote:
>
> I have a non active revord object and i have to find an instance of that
> object between requests
> I have tried to save it in session but as the object uses Libxml i got the
> error no marshall dump exists
> I cannot make an active revor
I haven't had any responses in the past few days, so the problem must
be unsolvable in Rails. ;) LOL
But let me rephrase the question more succinctly.
Assume, Shelf has a description and a set of items. Item has a
description, sku and color.
Given, I use build in my controller's new method to cre
ah yeah, you'll need to require all of the module files. Don't do this
in your model though, do it in a file in config/initializers.rb.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post t
A module include sounds fine but I got the following problem with the
sample code:
# app/models/user.rb
def User
include UserValidations
# elementary code
end
# app/models/user/user_validations.rb
module UserValidations
# validations
end
> uninitialized constant User::UserValidations
I
There are many ways available to do this.
1.Set up a sms gateway(kannel i prefer) and connect with smsc using smpp
(can send and get sms).then use your web server to connect with sms gateway.
2.Buy a API from service providers(Google it)(bit restricted).you will get a
URL basically, and you can e
Jyoti Jain wrote:
> Dear i tried lots of time but failed sorry
>
Well, what did you try?
What OS are you running?
What version of ImageMagick and RMagick?
Is RMagick2.so present on your system?
No one here is omniscient, and without further information, the
likelihood of any additional advic
Marnen Laibow-Koser wrote:
> Ar Chron wrote:
>> It might be the simplest solution.
>
> That's a pretty bad idea. has_one is a little smelly, but it's there,
> and it should work with :through. Better to solve the problem than to
> kludge around the framework.
>
True, but I guess it depends
On 15 June 2010 14:23, Frederick Cheung wrote:
>> I can confirm I get the same error trying to do a :has_many :through
>> on a :has_one "grandchild" in Rails 2.3.5 and Ruby 1.8.7
>
> Although this commit
> http://github.com/rails/rails/commit/b763858ed5faeda720035dd2178e7c44aa34240a
> (which woul
On Jun 15, 2:19 pm, Michael Pavling wrote:
> On 15 June 2010 14:12, Marnen Laibow-Koser wrote:
>
> > Adam Akhtar wrote:
>
> >>> Can anyone confirm if this is a limitation of the framework?
>
> >> anyone
>
> > How do you expect an answer to that if you haven't told us what versions
> > of Ru
S. K. wrote:
> Hi,
>
> I have the following (newbie) problem: in my 'app/models' folder is a
> class (User) with more then 1000 lines of code. I want to split the
> model in different files into a subfolder (a separat file for
> validations, filter, additional methods, ...). How can I do this as
>
Use modules, which are included not required. This is much cleaner than
overriding the class as you are doing above. You might find that you
can factor out some functionality such that other classes can use it as
well. Put the modules in lib and keep your models folder with just the
class de
On 15 June 2010 14:12, Marnen Laibow-Koser wrote:
> Adam Akhtar wrote:
>>
>>>
>>> Can anyone confirm if this is a limitation of the framework?
>>
>> anyone
>
> How do you expect an answer to that if you haven't told us what versions
> of Ruby and Rails you're using?
>
I can confirm I get the
Adam Akhtar wrote:
>
>>
>> Can anyone confirm if this is a limitation of the framework?
>
> anyone
How do you expect an answer to that if you haven't told us what versions
of Ruby and Rails you're using?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via h
On Jun 15, 1:11 pm, Rick DeNatale wrote:
>
> I don't think that's the issue here. It seems to me that the problem
> is the two-level STI
>
> ShippingCharge
> ContainerCharge
> HandlingContainerCharge
> ShippingContainerCharge
>
> So, since ContainerCharge is an STI subclass, th
On 15 June 2010 13:46, Adam Akhtar wrote:
>
>>
>> Can anyone confirm if this is a limitation of the framework?
>
> anyone
You said in your first post that it *didn't* work trying to do a
:though on a :has_one. So as far as I can see you have three choices:
1) Fudge it with a :has_many that
how to send sms to mobiles
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.co
>
> Can anyone confirm if this is a limitation of the framework?
anyone
--
Posted via http://www.ruby-forum.com/.
--
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-t...@googlegroups.c
Nominerdene Purevjav wrote:
> I solved this problem by downgrading my rails version to 2.3.5.
>
> To downgrade run command gem install -v=2.3.5 rails
>
> I Hope soon it will be fixed in 2.3.8 version.
>
> Iain wrote:
>> Hey folks
>>
>> I've got a couple of Actions that call methods in different
On Tue, Jun 15, 2010 at 7:57 AM, Frederick Cheung
wrote:
>
>
> On Jun 15, 12:44 pm, gamov wrote:
>
>> I would like the association to return all the container charges which
>> should be the right thing to do
>> Anyone knows how to do this?
>
> Does this only happen if cache_classes is set to
Hi Fred,
nope, with cache_classes = true it behaves the same way...
On Jun 15, 7:57 pm, Frederick Cheung
wrote:
> On Jun 15, 12:44 pm, gamov wrote:
>
> > I would like the association to return all the container charges which
> > should be the right thing to do
> > Anyone knows how to do this
On Jun 15, 12:44 pm, gamov wrote:
> I would like the association to return all the container charges which
> should be the right thing to do
> Anyone knows how to do this?
Does this only happen if cache_classes is set to false ?
Fred
>
> Regards,
> Gam.
--
You received this message beca
I found in my code this
'include REXML'
removing this line helped to me fix this issue.
Try to find in your code inclusion Namspace with Encoding constant
On Jun 15, 1:57 pm, Maxim Shytikov wrote:
> Hi,
>
> First of all, I'm sorry for my English.
>
> Looks like I found the reason of this problem:
On Mon, Jun 14, 2010 at 8:12 AM, Joshua Partogi
wrote:
> Hi all,
>
> I want to authenticate my mobile phone apps to my online Rails apps.
> What would be the best approach to do this? Can anybody give
> suggestion both on how I should do it in the mobile app and in the
> rails app?
I'd set the ra
Hello,
I have a model like this:
## Model
class ContainerCharge < ShipmentCharge
belongs_to :container
end
class Container < ActiveRecord::Base
has_many :container_charges
end
class HandlingContainerCharge < ContainerCharge
end
class ShippingContainerCharge < ContainerCharge
end
## Controlle
Just when i think i've got my head around including gems with gem.config
in my environment.rb file i hit another hurdle. The latest one involves
redlcoth, which one of my plugins needs.
my installed redcloth gem is in this folder:
/var/lib/gems/1.8/gems/RedCloth-4.2.2/
and its main lib folder
Hi,
First of all, I'm sorry for my English.
Looks like I found the reason of this problem:
I use REE 1.8.7, gem v=1.3.7
problem in
... /lib/ruby/site_ruby/1.8/rubygems/source_index.rb:89:in `read':
can't convert Hash into Integer (TypeError)
because code
if defined? Encoding then File.read
I'm using formtastic, I see that it seems simple enough with the standard
rails forms. I suppose I can ask on a formtastic gorup to see what they say.
Thanks
On Tue, Jun 15, 2010 at 1:20 AM, Rick DeNatale wrote:
> On Mon, Jun 14, 2010 at 1:55 AM, Ali wrote:
> > Hi guys.
> >
> > How do you updat
Hell Mlle,
have you found a solution? I have the same exact problem...
On Jun 1, 9:45 pm, Mlle wrote:
> I use javascript to insert a nested model form into a page. If I use
> validation on the data entered and it reloads the page with an error
> displayed, the nested model form is gone because i
On Jun 15, 11:03 am, "S. K." wrote:
> Hi,
>
> I have the following (newbie) problem: in my 'app/models' folder is a
> class (User) with more then 1000 lines of code. I want to split the
> model in different files into a subfolder (a separat file for
> validations, filter, additional methods, ...
Hi,
I have the following (newbie) problem: in my 'app/models' folder is a
class (User) with more then 1000 lines of code. I want to split the
model in different files into a subfolder (a separat file for
validations, filter, additional methods, ...). How can I do this as
simple as possible? Can I
I thought it could be created in a few steps but it can't yet:
rails poly
cd poly
ruby script/generate scaffold animal name:string obj_type:string
obj_id:integer
rake:migrate
ruby script/generate scaffold human name:string
passportNumber:string
rake:migrate
ruby scr
On 15 June 2010 00:18, supernoob wrote:
> I have been trying to understand how form_for works and the api or
> anything on the web does not offer a simple explanation that i could
> understand. seems all their explanations are too complicated for me.
What is it that you do not understand? If you
>
> I have been just tasked to learn Rails for a new project and have been
> given Mac machine for it. I have never used a Mac / Linux ever. I have
> used Rails before on Windows. I need to set up Rails development env
> on this Mac machine. Its Mac OS X - Snow Leopard. The development
> environmen
kris.vandenbe...@gmail.com wrote:
> I am really new to Ruby and Rails but as you probably see I am trying
> to get the shopping card working from the book. I am getting this
> error but I really don't know what to do. I have looked up several of
> topics that stated the same problem but as far as I
I also get this warning in the very beginning of the gem install. Does
it have any relevance?
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/Ram/.gem/ruby/1.8/bin in your PATH,
gem executables will
Hello all,
Ive got Mac OS X Leopard (10.5.8), ruby 1.8.6 (2009-06-08 patchlevel
369) [universal-darwin9.0] and mysql 5.0.67 installed and working fine
with Rails 2.1.0.
"which ruby" outputs /usr/bin/ruby. I can see the mysql symlink in /
usr/local/mysql. I can also see the mysql-5.0.67-osx10.5-x8
stylesheet_link_tag returns a stylesheet link tag for the sources specified
as arguments. Basically you do not need to specify the .css extension. It is
appended automatically. If you have several CSS files in the stylesheets
directory, you can include *all* styles using :all as the source.
---
Edm
I have been trying to understand how form_for works and the api or
anything on the web does not offer a simple explanation that i could
understand. seems all their explanations are too complicated for me.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
Hello,
I have been just tasked to learn Rails for a new project and have been
given Mac machine for it. I have never used a Mac / Linux ever. I have
used Rails before on Windows. I need to set up Rails development env
on this Mac machine. Its Mac OS X - Snow Leopard. The development
environment ne
I will be out of the office starting 15/06/2010 and will not return until
16/06/2010.
I will be accessing my mail from time to time but for urgent issues please
contact Kiran Joshi (IT Issues) or Adam Brand (Business Issues) or Steve
Owens (Project, Planning or Finance Issues) or Maarten Tentij
86 matches
Mail list logo