Re: [Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread Sam Saffron
Hi San, You can still consume the forum 100% from your mailbox see: https://discuss.rubyonrails.org/t/what-if-i-dont-want-to-visit-the-forum-and-only-want-to-participate-via-email/73915 On Thu, Mar 26, 2020 at 2:08 PM San Ji wrote: > > A little bit sad. > > The only reason I am still reading t

Re: [Rails] Path to contribute to rails core

2018-12-06 Thread Sam
problems users are facing, make a PR, and get feedback on your > feature/bugfix. There is a label for "good-first-patch" > <https://github.com/rails/rails/issues?utf8=%E2%9C%93&q=label%3Agood-first-patch+>, > > but it looks like there aren't any outstanding iss

[Rails] Path to contribute to rails core

2018-12-06 Thread Sam
I want to contribute to rails core, but I don't know where to start. the codebase is big obviously, how would a newbie become comfortable with working with rails core. right now I look at the code and I have no clue what is what. Can you guys share a learning path to get comfortable with rails

[Rails] Running a Ruby Script from Rails controller kills the rails server

2015-10-13 Thread Sam S
I am trying to run a ruby script from my rails controller. The script runs successfully when the rails server is started normally as rails s thin -e development But when rails server is started as a daemon, the ruby script fails to run. rails s thin -e development -d Inside the contr

[Rails] ROR oppurtnity

2013-01-30 Thread Sam A.
Dear Members; We are looking for ROR developers with our direct client in VA Duration-24+Months Any one interested please do reply Sam 732-208-8319 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: Looking for RoR job (remotely/part-time/full-time)

2013-01-30 Thread Sam A.
we have an onsite opurtunity with our direct client for 24+months If intrested please do forward your profile to sam.alexan...@marlabs.com Sam 732-2088319 Sep D. wrote in post #1094090: > Hi guys, > > I am looking for a job as a Ruby On Rails developer - remotely, as a > part-

[Rails] Re: New to Rails

2012-12-20 Thread Sam Pizzey
Hi there! The $ signs represent the prompt - you do not enter them. It is the equivalent of showing something like c:\> in windows - the generally accepted way to designate 'this is a shell command'. So: $ rails new myapp Is telling you to type "rails new myapp" - no $ sign. rails server doesn

[Rails] Re: How to stop ruby escaping javascript?

2012-11-15 Thread Sam Pei
Robert Walker wrote in post #1084592: > Sam Pei wrote in post #1084545: >> Max Shytikov wrote in post #1084457: >> I can't figure out how to pass a ruby variable into an external css or >> js file... >> >> So I have to keep all the code in one big (sigh!) r

[Rails] Re: How to stop ruby escaping javascript?

2012-11-15 Thread Sam Pei
Max Shytikov wrote in post #1084457: > Only one solution you should use method 'tag' directly > https://github.com/rails/rails/blob/39b9c943b7ec5181c19461d319d8c610ea1bf941/actionpack/lib/action_view/helpers/tag_helper.rb#L65 Thank you, This works! But finally I ended making a getElementById("

[Rails] How to stop ruby escaping javascript?

2012-11-14 Thread Sam Pei
Hi all. If In my view I have: <%= text_field_tag('name','',:onfocus => "for (var i=1;i<9;i++){};" %> I'd expect to have this html: instead I have: And obviously the javascript code does not work... I also tried this: <%= text_field_tag('name','',:onfocus => "for (var i=1;i<9;i++)

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Sam Pizzey
*Need* to? No. Is there work around in RoR? Plenty. Same could be said for PHP, though. On Fri, Nov 9, 2012 at 5:01 PM, M wrote: > I am new to PHP programming and came across Ruby on Rails. I want to move > towards an actual job in programming and wonder if I need to learn Ruby on > Rails? > > -

[Rails] Re: gem install fails so no installation of Rails

2012-11-10 Thread Sam Pizzey
Pardon the silly question, but are you sure zlib1g-dev was installed prior to building this ruby and not after the fact? (This has caused many the annoying hour for me with multiple rubies and forgetting when ruby x was actually built!) -- You received this message because you are subscribed to

Re: [Rails] Re: Develop using Rails in offline mode

2012-11-08 Thread Sam Pizzey
If you already have the gems required by whatever you're running, `bundle install` doesn't hit the network - so, if you've already generated one app successfully, you can continue to generate/work on more offline without issue. There are ways around this problem if you absolutely must, but in gene

[Rails] Re: Error installing therubyracer

2012-09-10 Thread Sam Woodard
@johnrlive install git with homebrew rather than relying on the os x version. -- 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-talk@googlegroups.

[Rails] iterate through a multi dimensional hash

2012-08-17 Thread Sam Ginko
The problem I'm having is that I need to extract the value of amazon and chef separately. Right now they are both held in the b value in my iteration. I tried to create another loop within the value.each but i'm getting an error. How do I efficiently extract both value separately and efficiently?

[Rails] Re: dynamic loop in a hash

2012-08-03 Thread Sam Ginko
Sam Ginko wrote in post #1071240: > Colin Law wrote in post #1071227: >> On 3 August 2012 22:03, Sam Ginko wrote: >>> i.day.ago.to_date => { :coder=>@numdeployed, :imedidata=>@numdeployed, >>> :balance=>@numdeployed, :CTMS=>@numdeployed }, >>&

[Rails] Re: dynamic loop in a hash

2012-08-03 Thread Sam Ginko
Daniel Mantilla wrote in post #1071237: > This should work: > > items = 12.times.map { [i.day.ago.to_date, { :coder=>@numdeployed, > :imedidata=>@numdeployed, > :balance=>@numdeployed, :CTMS=>@numdeployed } ] }.flatten > result = Hash[*items] > > Daniel Thanks Daniel, I will try this. -- Posted

[Rails] Re: dynamic loop in a hash

2012-08-03 Thread Sam Ginko
Colin Law wrote in post #1071227: > On 3 August 2012 22:03, Sam Ginko wrote: >> i.day.ago.to_date => { :coder=>@numdeployed, :imedidata=>@numdeployed, >> :balance=>@numdeployed, :CTMS=>@numdeployed }, >> i += 1 >> end >> >> >> O

[Rails] dynamic loop in a hash

2012-08-03 Thread Sam Ginko
I'm trying to create a dynamic loop within the hash @data below and can't really seem to figure it out. The array within the hash has to be dynamic i:e the day number has to be generated by a loop either while or until and the name of the product and number are dynamic as well. I'll try to explain

Re: [Rails] Speed Up rake?

2012-08-01 Thread Sam Serpoosh
g to improve the design toward this style in small steps and using the existing SLOW tests to make sure we're not breaking things is a good thing to do. Until we end up with a great design with extracted domain-logic modules in their own place and having incredibly fast isolated tests for t

Re: [Rails] Speed Up rake?

2012-07-31 Thread Sam Serpoosh
011/corey-haines---fast-rails-tests/ it'll be great explanation of the things I've just mentioned with perfect details and examples. Hope that helps. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received this message be

Re: [Rails] Looking for partners for doing a project

2012-07-29 Thread Sam Serpoosh
> > I got another rails buddy for doing project. Don't worry, I will let you > know. When I will start my project. > > Ok, that's gonna be great, maybe I'll join you if I can manage my time. I definitely like to participate, sounds good? Best Regards -- Sam Ser

Re: [Rails] Looking for partners for doing a project

2012-07-29 Thread Sam Serpoosh
cific date let me know so maybe I can handle my stuff till then. Again I apologize for the delay. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus <http://twitter.com/masihjesus> -- You received this message because you are subscribed to th

Re: [Rails] Re: Undefined method error

2012-07-19 Thread Sam Serpoosh
I > want to be able to submit on one form the micropost content, user e-mail > address and password instead of having the user logged in. > > > Sam Serpoosh wrote in post #1069239: > > when you want to create a blank instance of a model for a form's sake > > like >

Re: [Rails] Undefined method error

2012-07-18 Thread Sam Serpoosh
cribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.goog

[Rails] Is there anyway for stubbing methods of a module?

2012-07-16 Thread Sam Serpoosh
methods of modules like these 3 methods here? I really appreciate your help on this. Thanks in advance for your help. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received this message because you are subscribed to the Google Groups

[Rails] APP-ID for using Bing search api through "rbing" gem!

2012-07-14 Thread Sam Serpoosh
e guides seems valid anymore and I don't find the links they talk about or other parts. Can you please help me on this and give me some guidelines about how can I create a Bing APP-ID for using in my app? Thanks in advance. Best Regards -- Sam Serpoosh Software Developer: http://masih

Re: [Rails] Re: How to become effective and professional in Rails?

2012-07-04 Thread Sam Serpoosh
can watch this nice screencast by Ryan Bates about beginning with cucumber in rails -> http://railscasts.com/episodes/155-beginning-with-cucumber Hope that helps. Good Luck Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received th

Re: [Rails] Re: How to become effective and professional in Rails?

2012-07-04 Thread Sam Serpoosh
hings can make good differences in the apps we write. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] How to become effective and professional in Rails?

2012-07-01 Thread Sam Serpoosh
eat knowledge in that area? I really appreciate your helps and advice on this. Thanks in advance for your guidance. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus <http://twitter.com/masihjesus> -- You received this message because you

Re: [Rails] Default scope on associations

2012-06-29 Thread Sam Serpoosh
s and campaign_sites in the JOIN) Hope that helps. But I think a little more explanation about your model relationships (campaign, campaign_sites, [sites if there's such a thing]) can be helpful so we can understand the problem better and maybe give you better answers. Good Luck ;) -- Sam

[Rails] how to setup nulldb

2012-06-14 Thread Sam Serpoosh
gist.github.com/2869276 I really appreciate your help on this. Thanks in advance for your help. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

Re: [Rails] Open Source Project Suggestion

2012-06-13 Thread Sam Serpoosh
Thank you so much for your responses ;) I appreciate it -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @masihjesus -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, sen

[Rails] Open Source Project Suggestion

2012-06-13 Thread Sam Serpoosh
about this and I found some projects like Inoshi by Michael Hartl but he told that it's way out of date at this point and is not a good option. Thanks in advance for your help and guidance. Best Regards -- Sam Serpoosh Software Developer: http://masihjesus.wordpress.com Twitter @m

[Rails] Re: Paginating with couchrest_model

2012-06-09 Thread Sam Lown
uthor.page(params[:page]) # Paginate it in view (requires kaminari) paginate @authors [/code] (If you were using the type property, you wouldn't need to add your map method and could just use `Author.all.page(params[:page])`, with the same effect.) You can find more info about

[Rails] Re: A rails plugin to generate css sprite image automatically

2011-03-03 Thread Sam Woodard
ve_assets, but it also creates the stylesheets! Check it out at Github: http://bitly.com/eRTwU4 The latest releases only work with Rails 3, but if you need 2.3 support use 0.3.x. Cheers, Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] Need help with RSpec xhr request

2011-03-02 Thread Sam H.
I have the following function in JS for a drag and drop file uploader: function uploadFile(file){ var xhr = new XMLHttpRequest(); var upload = xhr.upload; var uri = "/imagebooks/upload_supporting_image/?authenticity_token=" + $('meta[name=csrf-token]')

[Rails] How do I stop email from being delivered in the interceptor?

2011-02-28 Thread Sam Kong
Hi, I am developing a rails 3 application. I want to use a interceptor before delivering emails. If a conditions meets, I want to stop the email. How do I do that? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] ActionMailer: hostname was not match with the server certificate

2011-02-18 Thread Sam Kong
t; "", :authentication => "plain", :enable_starttls_auto => true } Strangely, the same configuration works in Rails 2.3.8. (:tls => true) What's wrong? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Is this a bug of accepts_nested_attributes_for ?

2011-01-26 Thread Sam Kong
ot;}}} # Now I try to destroy it again when the attachments are loaded. ruby-1.8.7-p302 > post.save => true ruby-1.8.7-p302 > post.attachments.reload # To make sure that attachments are reloaded after the change. ruby-1.8.7-p302 > post.attachments.map { |i| i.id }.join(", ")

[Rails] Question about accepts_nested_attributes_for and reject_if

2011-01-24 Thread Sam Kong
car with the same code in the console. If I modify the line like the following, it works also. accepts_nested_attributes_for :cars, :allow_destroy => true, :reject_if => proc { |attrs| attrs['id'].blank? and attrs['name'].blank? } As I understand it, reject_if opti

[Rails] Weird Rails 3 Route Problem

2011-01-10 Thread Sam Kong
outes affect simple_captcha? Thanks. Sam -- 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 g

[Rails] Relay Access Denied

2010-11-26 Thread Sam Kong
omain.com", :port => 587, :domain => "www.mydomain.com", :user_name => "my_user_name", :password => "my_pasword", :authentication => :plain } Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] rake path seems wrong

2010-11-15 Thread Sam Ginko
I'm trying to test rake to make sure it works but I'm getting the following error /usr/local/bin/rake:19:in `load': no such file to load -- /Users/mauro/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake (LoadError) from /usr/local/bin/rake:19 rake is installed in /usr/local/bin/rake not sure why the pat

[Rails] Railscamp Ticket

2010-11-04 Thread sam
Hi All, I have a rails camp ticket (VIP) that I am selling as I can no longer attend. Price is $257. Please contact me if you are intersted. Cheers -- 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 rubyo

[Rails] passenger for both rails 2.3 and 3.0

2010-10-27 Thread Sam Kong
2.3 and 3.0? Passenger standalone seems to be an option but I want to know if there's a better way. Thanks. Sam -- 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 gr

[Rails] Where can I find the full document for rails application template?

2010-10-24 Thread Sam Kong
Hi, I am trying to learn how to use rails application template (as in "rails new app_name -m "). I can find some examples but I can't find full document for the APIs. Does anyone know where the document is? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You receiv

[Rails] Passenger is not working

2010-10-22 Thread Sam Kong
the local domain. I also reloaded apache2. When I visit the site from my browser, it just shows blank page. No error. What did I miss? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&

[Rails] Problem while installing passenger for apache

2010-10-18 Thread Sam Kong
Done Note, selecting 'libruby' instead of 'libopenssl-ruby' libruby is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded. How do I install libopenssl-ruby? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You receive

[Rails] gvim error with rails.vim

2010-10-15 Thread Sam Kong
. And some more error messages related to rails#app. Why doesn't gvim work while vim works fine? rails.vim is the latest, by the way. Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Simple_captcha issue

2010-09-10 Thread sam
I have a weird issue .I am using simple captcha in forms in my rails applications. If I am using one captcha in a web page I don't have any problem. But I have a scenario of using three(3) forms in one page in which all the three forms will have the captcha . So that when I refresh the page the ca

[Rails] When to use 'bundle package'

2010-09-01 Thread Sam Kong
r/cache to your git repository? Thanks. Sam -- 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 fro

[Rails] Rails 3 routing for namespaced controllers

2010-08-23 Thread Sam Kong
, if I have /c2/a2 (note it's not namespaced with admin) /admin/c2/a2 also works even if I don't have Admin::C2Controller. So /admin/c2/a2 is mapped to c2#a2. This might not be a big problem but I feel it's weird. What do you think? Sam -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Re: Re: Re: What's the best way to solve this?

2010-08-16 Thread Sam Kong
Hassan Schroeder wrote: > On Mon, Aug 16, 2010 at 10:19 AM, Sam Kong wrote: > >> Our top menus are categories. >> I need to highlight the category. >> Do you have any good idea for that? > > Well, some choices are to "highlight" > > 1) none of the

[Rails] Re: Re: Re: What's the best way to solve this?

2010-08-16 Thread Sam Kong
Hassan Schroeder wrote: > On Mon, Aug 16, 2010 at 10:02 AM, Sam Kong wrote: > >> The problem is that @product.categories is multiple. >> I need to highlight only 1 category for the product and show only 1 >> breadcrumb. >> If there's some path that the user

[Rails] Re: Re: What's the best way to solve this?

2010-08-16 Thread Sam Kong
Colin Law wrote: > On 16 August 2010 17:10, Sam Kong wrote: >>> category. >> >> Sorry. >> I was not clear about this. >> Product and Category are m:n relationship. >> Actually there's a Categoryship model. > > It would be easier if you co

[Rails] Re: What's the best way to solve this?

2010-08-16 Thread Sam Kong
Colin Law wrote: > On 16 August 2010 06:05, Sam Kong wrote: >> Hi, >> >> Here's a situation: >> A product belongs to multiple categories and the categories are top >> menus of a site. > > That does not make sense, do you mean product has_many ca

[Rails] What's the best way to solve this?

2010-08-15 Thread Sam Kong
ple, I can track the categories that a user selected). But sometimes there's no context (for example, the user visits the page directly without getting through categories). How can you solve this problem? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Best way to render partial

2010-08-15 Thread Sam Kong
ion.html.erb ... Page title Some contents... ... Practically they are same. I think [1] is more DRY. But I feel kinda weird with [1] because the wrapper div is separated from the real content. Which do you think is better? Sam -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] script/server problem/...

2010-08-12 Thread sam
r...@essc-openvpn:/websites/teambox.mydomain.com/teambox# sudo script/ server -e development /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb: 132: warning: Insecure world writable dir /usr/bin in PATH, mode 040777 => Booting Mongrel => Rails 2.3.8 application starting on http:

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-05 Thread Sam Ward
de. I will try and keep out of trouble until I am proficient enough to repay it. Thank you Sam -- 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 ruby

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-05 Thread Sam Ward
ind(item_id) User.find(@item.user_id) end def borrower User.find(user_id) end end -- ends Thanks again for your time on this, I am the only person I know using Ruby and/or Rails, I would be totally adrift without you guys. Sam -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-05 Thread Sam Ward
other ideas? Have I broken something? I am totally flummoxed. Rapidly Balding Sam Here's my stack trace for good measure: ArgumentError in LoansController#create wrong number of arguments (1 for 0) RAILS_ROOT: /Users/sam/Sites/myunibox Application Trace | Framework Trace | Full Trace /Use

[Rails] Re: Hello friends !

2010-08-04 Thread sam
uggernaut " On Aug 4, 6:04 pm, Colin Law wrote: > Please don't top post, it makes it difficult to follow the thread.  Thanks > > On 4 August 2010 13:53, sam wrote: > > > Hi colin ! > >                Thanks for your response. when i tries to execute > > Jug

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Sam Ward
Colin Law wrote: > On 4 August 2010 18:44, Sam Ward wrote: > words starting with Tra...) > > Colin Oh no! Wow, it's going to be fun to unpick all that... transaction is probably the most used word in my entire project! Thanks Colin, at least I can direct my efforts into

[Rails] Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Sam Ward
d, please let me know if I've missed something you need to see. I really am going insane. Kind regards Sam [transactions_controller.rb in part] --- def new @transaction = Transaction.new end def create @transaction = Transaction.new(params[:trans

[Rails] Re: Hello friends !

2010-08-04 Thread sam
am or batch file." I was not able to proceed further. Regards, sam. On Aug 4, 2:26 pm, Colin Law wrote: > On 4 August 2010 08:06, sam wrote: > > > Hello friends ! > > >                      I am in need of implementing the live chat > > functionality in my applica

[Rails] Hello friends !

2010-08-04 Thread sam
functionality. Thanks in advance regards, sam -- 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

[Rails] Re: Passenger can't find rails gem

2010-07-24 Thread Sam Kong
Sam Kong wrote: > rholmes wrote: >> I fixed this on my machine as follows: >> >> The boot.rb file is the one that was generating this message, in a >> method called 'load_rails_gem'. If you print the value of the >> variable 'load_error' it wi

[Rails] Re: Passenger can't find rails gem

2010-07-24 Thread Sam Kong
to > why the gem wouldn't load. In my case, it was a mismatched version of > rack; I installed a down-revision and everything worked. > > -Richard. Thanks Rechard. I'll try that. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Uncountable nouns in resource routes with Rails 3

2010-07-09 Thread Sam Danielson
I have a model called Aircraft, inflected as uncountable, and it's driving me nuts. What is the correct way to handle this in Rails 3 beta 4? resources :aircraft do member do get :flights end end # Of course these work for some actions and not others. match 'a

[Rails] Re: Passenger can't find rails gem

2010-07-07 Thread Sam Kong
Leonardo Mateo wrote: > On Wed, Jul 7, 2010 at 7:21 AM, Sam Kong wrote: >> Could not find gem 'rails (= 3.0.0.beta4, runtime)' in the gems >> PassengerRuby /Users/ssk/.rvm/rubies/ruby-1.8.7-p299/bin/ruby >> >> >> Why can't passenger find rails? &

[Rails] Passenger can't find rails gem

2010-07-07 Thread Sam Kong
y-1.8.7-p...@rails3/gems/passenger-2.2.15/ext/apache2/mod_passenger.so PassengerRoot /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3/gems/passenger-2.2.15 PassengerRuby /Users/ssk/.rvm/rubies/ruby-1.8.7-p299/bin/ruby Why can't passenger find rails? Thanks. Sam --ADDITIONAL INFO--- gem

[Rails] Re: How do I upgrade rack in my current rails app?

2010-06-14 Thread Sam Kong
Robert Walker wrote: > Sam Kong wrote: >> I have a rails 2.3.8 app which has rack 1.1.0. >> I get parse_multipart error. >> There's a new release of rack 1.2.0 which might fix the multipart error. >> >> The question is how I upgrade the rack? >> I fro

[Rails] How do I upgrade rack in my current rails app?

2010-06-14 Thread Sam Kong
app still uses rack 1.1. How do I set the rails app use rack 1.2.0? Thanks. Sam -- 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-

[Rails] Rack error: bad body content

2010-05-28 Thread Sam Kong
evelopment server though. So it might be rack version related. My development server has rack 1.0 bundled. The production server has rack 1.0.1. Both are rails 2.3.2. Any idea how to fix this problem? Thanks. Sam -- Posted via http://www.ruby-forum.com/. -- You received this message becau

[Rails] What does attachment_fu do when saving?

2010-05-22 Thread Sam Kong
nly modify other non-attachment_fu attributes). If I do object.save(false), it doesn't take long time. So my question is... What's the difference between object.save and object.save(false) when the object is attachment_fu model and there's no validation? Thanks. Sam -- Posted via

[Rails] attachment_fu slows down update

2010-05-20 Thread Sam Kong
", "id"=>"2945"}, "20"=>{"_delete"=>"0", "color_id"=>"18", "id"=>"2957"}, "4"=>{"_delete"=>"0", "color_id"=>"2", "id"=>

[Rails] I cannot install Rails 3.0 on my OS X

2010-05-16 Thread Sam Kong
pport requires Ruby version >= 1.8.7. What should I do? Sam -- 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 uns

Re: [Rails] rails and mssql

2010-04-29 Thread Sam Granieri
I used SQL Server 2005 for 18 months for a rails application. I recall having to use both freetds and unixodbc to get the connection to work. I'm a little hazy on this, but I think one is a higher level communication protocol, and one is a lower level communication protocol. Google the rest if it h

[Rails] csv header -mapping

2010-04-28 Thread sam rlo
Hi all, I need to append the headers to specific attributes within a form from an imported csv file, for example; I have a model which contain only ":name" field but csv file contain firstname and last name (csv files are submitted by user ,so there is no control over file format ) CSV file may lo

[Rails] Best search function plugin/gem for instant rails 2.0

2010-03-22 Thread Sam
irly easy plugin/gem that would not require alot of configuration that would be great! Thanks, Sam. -- 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 uns

[Rails] You have a nil object when you didn't expect it! Error!

2010-02-18 Thread Sam
Hi, I've created a business form and an address form using scaffolding and I am trying to get the business form to display some information from the address form, but I keep getting an "You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred

[Rails] Re: Amending partials

2010-02-18 Thread Sam
create button. How do make the create button save all the data on the form? Also what validation method do I use to check that the details I want to save are not already present in the database? On Feb 16, 11:55 am, Colin Law wrote: > On 16 February 2010 10:32, Sam wrote: > > > c

[Rails] Re: Amending partials

2010-02-16 Thread Sam
class Business < ActiveRecord::Base has_many :addresses has_and_belongs_to_many :categories validates_presence_of :business_name end class Category < ActiveRecord::Base has_and_belongs_to_many :businesses validates_presence_of :category end class Address <

[Rails] Re: Amending partials

2010-02-12 Thread Sam
I tried the code and I get the following error message: NoMethodError in Businesses#new Showing businesses/new.html.erb where line #21 raised: undefined method `address' for # Extracted source (around line #21): 18: <%= f.text_field :website %> 19: 20: 21: <% fields_for(@business.address

[Rails] How to upgrade my version of my rails application.

2010-02-12 Thread sam
Hello experts! I am having problem while upgrading my rails version from 1.2.3 to 2.3.4. To tell clearly, my problem is I have upgraded my rails version from 1.2.3 to 2.3.4. But i was not able to run the application. When i tries to run the application by ruby script/server am

[Rails] Re: Amending partials

2010-02-12 Thread Sam
Hi thanks for the info. Here is the link containing the code and an image of the form: https://gist.github.com/a3676da061799ac6e29d On Feb 11, 11:34 am, Sharagoz -- wrote: > If the code is too long to copy/paste directly into the post, then you > can create a public gist on github and link to t

[Rails] Re: Amending partials

2010-02-11 Thread Sam
Thanks for replying, I'd like to post an image but Iseem to be having a few issues posting the link on here, I used image shack to upload the image of the form but I cannot post the direct link or embedded link, i keep getting an error message saying "We were unable to post your message". Not sure

[Rails] Amending partials

2010-02-09 Thread Sam
ideas? Thanks, Sam. -- 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.com. F

[Rails] Re: problems with 1.9.1, acts_as_versioned an acts_as_ferret

2009-12-11 Thread Sam Granieri
Matt, If I were you I'd highly consider ditching Ferret for Solr and Sunspot.. http://outoftime.github.com/sunspot/ On Dec 11, 7:08 am, Matt Harrison wrote: > Hi guys, > > I recently tried to upgrade my ruby version from 1.8.6-enterprise to > 1.8.7-enterprise but found some issues. Just for kic

[Rails] Getting unique entries after creating a join in rails

2009-12-02 Thread Sam Lummis
named_scope :active_between, lambda { |start, fin| {:joins => [:contacts, :favourites], :conditions => ["?< contacts.created_at and contacts.created_at "DISTINCT users.*"}} Ok so this is a pretty ugly long query, but unfortunately it's necessary to use or statements in the query. The problem I'm

[Rails] no such file to load -- ferret, solaris, acts_as_ferret

2009-11-11 Thread Sam Woodard
n40cideploy/work $ cap deploy >> /home/visastage/.cruise/projects/vbn40cideploy/build-4210/build.log && cap deploy >> /home/visastage/.cruise/projects/vbn40cideploy/build-4210/build.log 2>&1 exitstatus: 1 STDERR TAIL START However, if I run the same command from the server, they w

[Rails] Re: First App- Error 500

2009-11-07 Thread Sam Sam
mgpowers wrote: > Does anyone have any ideas on this ? > > I hate to abandon Ruby but the error... > > /!\ FAILSAFE /!\ Wed Aug 26 10:40:18 -0400 2009 > Status: 500 Internal Server Error > unknown error > C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize' > C:/Ruby/lib/ruby/1.8/dl

[Rails] Change authlogic config at runtime

2009-11-01 Thread Sam Woodard
tmp = save_without_session_maintenance User.validate_password_field=true end tmp end This does not work. It still validates the password field. Any help? Thanks, Sam -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Re: Problem with backgroundrb!!!

2009-10-13 Thread Sam SQA
vimal wrote: > Finally i got it after 2 days > uninstalling and installing again and again did the job for me > still i am unable to figure out the problem which caused it Hi Vimal, Can you please tell me how did you un-install the backgroundrb? Appreciate your help. Thanks, Sapna. -- Posted

[Rails] Re: Error: uninitialized constant MysqlCompat::MysqlRes

2009-10-12 Thread Sam Esam
Hi * URGENT PLEASEE *** I still see the problem after following the above steps. Please please help me. ~Sam. == ruby script/server => Booting Mongrel => Rails

[Rails] attachment_fu generates wrong public_filename

2009-10-06 Thread Sam Kong
t;, size: 2300, width: 52, height: 52, created_at: "2009-10-05 02:43:51", updated_at: "2009-10-05 02:43:51" >> pic.public_filename => "/product_pictures/0001/2330/b_9788994035109.gif" >> pic.public_filename(:mid) =&

[Rails] Re: 2 submit buttons, how to identify which pressed in the controller?

2009-09-16 Thread sam
check params[:commit] if params[:commit] == 'first' else params[:commit] == 'second' end On Sep 15, 1:10 am, Matt wrote: > Hi > > I have the following code: >             <%= f.submit 'First', :class => "mybutton", :myid=> "xx" %> >             <%= f.submit 'Second' %> > > I would have expecte

[Rails] passing parameter in edirect_to in Rails

2009-09-16 Thread sam
Hi all, I am a newbie trying to learn rails, How do we pass parameters in redirect_to in rails I know we can pass using this redirect_to :action => action_name,:id => 3, :abc => 'sdfdf' but abc goes as parameter in the urlI want it to be sent as params hash where the parameter is not

  1   2   >