[Rails] Re: ROR Developer

2011-02-03 Thread Ed cs
I am looking for a full time developer/coder for a new software business. *The business is based in London United Kingdom* - They will be required to come to meetings and speak with partners IT departments - In an ideal world they would have worked with or for a retailer in the past. - We are

[Rails] how to get rid of nil values in session?

2011-02-03 Thread arunmehta
When I inspect the session hash, it shows me lots of entries that I have assigned a nil value to at some point. Is that taking up a lot of space? What is a good way to get rid of these useless entries? I am generally trying to reduce the size of my session hash. Is there a note with tips about th

[Rails] Re: How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread Mohnish G j
ratnadeepdeshm...@gmail.com wrote in post #979552: > hey, > i would suggest two checks - > -check of published date column to be of the type datetime. > - check your log files for parameters beimg sent after submitting new > book form. in your case date shpuld be sent as book[published_date] > > i

Re: [Rails] Can't connect mysql db

2011-02-03 Thread Hendra Gunawan
gem install mysql, maybe you forget it. On Fri, Feb 4, 2011 at 12:48 PM, Vijay Ra wrote: > Hello, > I am new in ror > I create new application and > i try to connect mysql using rake db:migrate it showing attached error > i am using xampp for mysql > also my database.yml settigs are as follows

[Rails] Re: How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread Frederick Cheung
On Feb 4, 1:36 am, Mohnish G j wrote: > Frederick Cheung wrote in post #979492: > > > On Feb 3, 4:36pm, Mohnish G j wrote: > > >> The roadblock I am facing is how to call the `$F('publishing_date')` in > >> my new.html.erb file using the rails `<%=>` tag and then assign that to > >> my :publish

[Rails] TinyMCE editor

2011-02-03 Thread kirti parihar
hi... I m newbie in RoR and working on rails 3. Actually i m using tiny_mce plugin in my application and following the steps mentioned in this link https://github.com/kete/tiny_mce, No doubt this is working absolutely fine in application but the other Jquery applied to the application is not worki

[Rails] Re: Can't connect mysql db

2011-02-03 Thread Vijay Ra
Thank you very much I put space inbetween and its workig again thanx ratnadeepdeshm...@gmail.com wrote in post #979555: > yml files are very strick about spaces and tabs. Make sure you have > space > inbetween password: and mypassword. Right now it doesn't seems to be > there. > > On Fri, Feb 4

Re: [Rails] Can't connect mysql db

2011-02-03 Thread ratnadeepdeshm...@gmail.com
yml files are very strick about spaces and tabs. Make sure you have space inbetween password: and mypassword. Right now it doesn't seems to be there. On Fri, Feb 4, 2011 at 11:18 AM, Vijay Ra wrote: > Hello, > I am new in ror > I create new application and > i try to connect mysql using rake db

[Rails] Can't connect mysql db

2011-02-03 Thread Vijay Ra
Hello, I am new in ror I create new application and i try to connect mysql using rake db:migrate it showing attached error i am using xampp for mysql also my database.yml settigs are as follows === development: adapter: mysql2 encoding: utf8 reconnect: false database: mydia

[Rails] Re: LIbrary to maintain manage browser sessions from command line

2011-02-03 Thread Amar Daxini
Mario Gr wrote in post #979538: > I have to update 80 pages' compliance terms on our clients existing CMS > system. I can't do this on the back end, and it's a tedious task I'm > looking to automate. > Try mechanize see if its is helpful https://github.com/tenderlove/mechanize Amar Daxini http://

Re: [Rails] How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread ratnadeepdeshm...@gmail.com
hey, i would suggest two checks - -check of published date column to be of the type datetime. - check your log files for parameters beimg sent after submitting new book form. in your case date shpuld be sent as book[published_date] i am sure second check should help. On Friday, February 4, 2011,

[Rails] How to access custom field of standard/custom object of salesforce

2011-02-03 Thread Kunjan Batavia
Hi, I am communicating with salesforce from my ROR app and it works fine with standard fields. But while accessing any custom field of standard/custom object of salesforce, I am getting below error: undefined method `VisitDate' for # Here VisitDate is custom field and VisitorReport is custom obj

[Rails] imagemagick 6.6.7.4-Q8

2011-02-03 Thread Rahul C.
which rmagick gem configured with imagemagick6.6.7.4-Q8 please reply...m not getting in google -- 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-ta

Re: [Rails] Where to set utf-8 encoding

2011-02-03 Thread David Kahn
On Thu, Feb 3, 2011 at 6:29 PM, Paul Bergstrom wrote: > Where do I set > > Encoding.default_external = 'UTF-8' > > in Rails 2.3.8? > > Can I add it to the environment.rb? Where? > This is probably entirely wrong for what you want, but today I had a little adventure with a certain non-ascii chara

[Rails] LIbrary to maintain manage browser sessions from command line

2011-02-03 Thread Mario Gr
I have to update 80 pages' compliance terms on our clients existing CMS system. I can't do this on the back end, and it's a tedious task I'm looking to automate. These are all in an admin panel, so I am trying to find a library that could at least maintain a session and simulate browser interactio

[Rails] Re: Anyone scaling jruby tomcat?

2011-02-03 Thread Deon Silva
Multi process is automatic with any java app server and does not require any configuration. As to benchmarks for which java app server is faster I do not know off-hand. We have several cloud deployed load balanced apps running on Trinidad, which is based on Tomcat. Trinidad is the present jruby

[Rails] Re: How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread Mohnish G j
Frederick Cheung wrote in post #979492: > On Feb 3, 4:36pm, Mohnish G j wrote: > >> >> The roadblock I am facing is how to call the `$F('publishing_date')` in >> my new.html.erb file using the rails `<%=>` tag and then assign that to >> my :publishing_date symbol which will eventually be use to up

[Rails] Re: Display note when MouseOver Input form

2011-02-03 Thread Hesham
Thx, I used this library, in case anyone else is interested: http://flowplayer.org/tools/tooltip/index.html -- 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.com. To unsubsc

[Rails] Where to set utf-8 encoding

2011-02-03 Thread Paul Bergstrom
Where do I set Encoding.default_external = 'UTF-8' in Rails 2.3.8? Can I add it to the environment.rb? Where? -- 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

Re: [Rails] Can't get a FORM to submit remotely in Rails 3.0.3?

2011-02-03 Thread Jim Ruther Nill
i think changing the form_tag to form_tag {:controller => 'mains', :action => 'search', :format => :js}, :remote => true do should work. The brackets are there to separate the url_for options with the html_options. On Thu, Feb 3, 2011 at 5:10 PM, Matthias S. wrote: > Hi, > > I am using Rails 3

Re: [Rails] Display note when MouseOver Input form

2011-02-03 Thread Philip Hallstrom
> I'm using Rails 3, Formtastic an Jquery. I would like to display a > "floating" note when an input field gets focus. > > A good example is when trying to submit a story on digg when you are > not logged in. What is the best way to do this? Search google for "jquery tooltip plugin". Lots of opt

[Rails] Display note when MouseOver Input form

2011-02-03 Thread Hesham
I'm using Rails 3, Formtastic an Jquery. I would like to display a "floating" note when an input field gets focus. A good example is when trying to submit a story on digg when you are not logged in. What is the best way to do this? -- You received this message because you are subscribed to the G

[Rails] Re: Ignore attr_accessible in seed file

2011-02-03 Thread Robert Walker
Markus Proske wrote in post #979510: > Is there a way to tell Rails to ignore attr_accessible when seeding the > database and to allow mass assignment with create or new? > I know how to skip validations but do not find anything on mass > assignment... Here's one way I found a quick Google search:

[Rails] Ignore attr_accessible in seed file

2011-02-03 Thread Markus Proske
Is there a way to tell Rails to ignore attr_accessible when seeding the database and to allow mass assignment with create or new? I know how to skip validations but do not find anything on mass assignment... -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: can't install rmagick

2011-02-03 Thread Paul Bergstrom
Installing latest IM. Hopefully that will solve it. -- 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.com. To unsubscribe from th

[Rails] can't install rmagick

2011-02-03 Thread Paul Bergstrom
Tried 'gem install rmagick' Got Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for Ruby version >= 1.8.5... yes checking for cc... yes checking for Magick-config...

Re: [Rails] Re: Anyone scaling jruby tomcat?

2011-02-03 Thread Curtis j Schofield
benchmarks - multi-process configuration / multi-interpreter setup / and where the community is with respect to jetty/netty/trinidad etc. On Thu, Feb 3, 2011 at 8:53 AM, Deon Silva wrote: > Yes. What specific info are you looking for. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You

[Rails] Re: Re: Configure logger, reopen class

2011-02-03 Thread Albert Català
Curtis wrote in post #979429: > On Feb 3, 2011, at 2:57 AM, Albert Catal wrote: > >>> >> super("ERROR>"+msg) >> end >> end >> >> this is in a file.rb in config/initializers/ >> >> and raises the error I said >> > > > > Did you read my other response about class methods? Yes but

[Rails] Re: What is Rake and Gem is actually in RubyonRails?

2011-02-03 Thread Robert Walker
amritpal pathak wrote in post #979374: > I am new to Ruby on Rails and number of times interacted with rake and > gem. > Can anyone explain what is Rake and Gem in RoR? Rake is like "make" for Ruby. It's basically a task runner that can manage dependencies between tasks. RubyGems (gem) is a Ruby

[Rails] Re: How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread Frederick Cheung
On Feb 3, 4:36 pm, Mohnish G j wrote: > An interesting excerpt from the aforementioned tutorial link is given > below: > >     The value of the selected date can be accessed by getting the value > of the text field named calendar. > >     Using the Prototype Javascript Library, you can do the f

[Rails] Correct way to exclude attributes from json serialization

2011-02-03 Thread Lee Henson
Hi I'm using Mongoid and Rails 3, and I want to serialize one of my mongoid documents to json for publishing via a controller, e.g. class ReportController < ApplicationController respond_to :json def show report = Report.where(:report_id => params[:id]).first respond_with

[Rails] Re: how to test after_commit rspec

2011-02-03 Thread Piotr M.
just got stung by this too the problem is that after_commit callback is called, well, after the save transaction gets commited :D, which actually never happens in rspec if you have transactional fixtures on config.use_transactional_fixtures = true haven't found a good solution yet -- Posted vi

[Rails] MongoDB at PostgreSQL Conference East

2011-02-03 Thread Joshua D. Drake
Hello, I wanted to let you folks know that MongoDB is having a track at PostgreSQL Conference East and is currently looking for people to speak. The deadline is the 10th, so if you are interested now is the time! http://www.postgresqlconference.org/ Joshua D. Drake -- PostgreSQL.org Major Contr

Re: [Rails] I cannot access to my application

2011-02-03 Thread Hassan Schroeder
On Thu, Feb 3, 2011 at 9:57 AM, Tiesto wrote: > I've upload an application to site5 hosting, I've configured as it > should be, but when I try to access I get the following error: > Ruby on Rails application could not be started / > Further information about the error may have been written to th

[Rails] I cannot access to my application

2011-02-03 Thread Tiesto
Hola! I've upload an application to site5 hosting, I've configured as it should be, but when I try to access I get the following error: Ruby on Rails application could not be started These are the possible causes: * There may be a syntax error in the application's code. Please check

[Rails] hi

2011-02-03 Thread selva raj
which plugins is suitable for state - regions select and date picker , i tried geography_select plugins but not running please reply 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

[Rails] Re: Anyone scaling jruby tomcat?

2011-02-03 Thread Deon Silva
Yes. What specific info are you looking for. -- 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.com. To unsubscribe from this grou

[Rails] one form for one model with nested resources.

2011-02-03 Thread Mauro
I have: Customer has_many :deliveries has_one :document Document belongs_to :customer Delivery belongs_to :customer route.rb has: resources :customers do resources :deliveries end I already have customers in the database, I only have to add deliveries and document to one cust

[Rails] How to transfer a javascript value into a symbol used in Ruby on Rails

2011-02-03 Thread Mohnish G j
Hi, I am currently using Rails 2.0.2 with Ruby 1.8.7. My Prototoype.js version is 1.7(if required). I am basically trying to integrate the calendar_date_select plugin in my app. The link/tutorial I am referring is: http://ianli.com/site/HowTo/UseCalendarDateSelectRailsPlugin I am trying to save

Re: [Rails] SMS Rails 3 Plugin

2011-02-03 Thread Peter Bell
Has anyone got any experience with Moonshado for SMS? Pricing looks good and integration with Heroku I'm guessing will be easy . . . http://addons.heroku.com/moonshadosms Thoughts? I'm comparing to Twlio which is what I would have otherwise gone with . . . Best Wishes, Peter On Feb 3, 2011, a

Re: [Rails] Re: Configure logger, reopen class

2011-02-03 Thread Curtis
On Feb 3, 2011, at 2:57 AM, Albert Català wrote: Curtis j Schofield wrote in post #979342: 2011/2/1 Albert Catal : super(args) end def error(msg) #also - this may give you an error # i remember this as msg = %%ERROR#{'-'*5}>#{msg}% super raises an error: [super: no superclass method

[Rails] Re: couldn't parse YAML at line 17 column 14

2011-02-03 Thread Solrac Caritas
there is a post there about my problem: http://blog.segment7.net/2011/01/31/rubygems-1-5 --- RubyGems 1.5.0 seems to force use of the psych yaml parser if you have it in your system. If you are having trouble parsing some yaml files, or if you have yaml files which use merge

[Rails] Problem with reset session cookies causing session sharing in an unstable network.

2011-02-03 Thread Jemmaniam
I was wondering if anyone might help me with a peculiar problem. We are having a problem with our network that is resulting in, say, UserA getting UserB's response, resulting in his session cookie being reset and two users sharing the same session, UserB's. Not good I know. Question: Why does Ra

[Rails] Re: Roo gem performance problems

2011-02-03 Thread dinamita
More details http://stackoverflow.com/questions/4875188/roo-gem-xlsx-files-performance-problems/4887273#4887273 On Feb 2, 2:02 pm, Alvaro Gonzalez wrote: > I am getting unacceptable performace problems by using the roo gem for > reading a file by using XLSX or XLS library from this gem. > > Som

Re: [Rails] SMS Rails 3 Plugin

2011-02-03 Thread Hesham Amiri
Heroku has an SMS add-on, bit haven't used it myself Sent from my iPhone On Feb 3, 2011, at 3:04 PM, Sankalp wrote: > Can anyone tell me which plugin integrates SMS with rails 3? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group.

Re: [Rails] ROR Developer

2011-02-03 Thread Peter Bell
If they need to come to meetings, it might be worth clarifying where your business (or more importantly, where the meetings) are based. It's up to you, but I also usually give a ballpark rate if I'm looking for someone so the $125/hr devs don't waste their time on a $40/hr opportunity and so I

[Rails] Re: Testing and application

2011-02-03 Thread yurokle
I totally agree with Peter, you should implement cucumber tests at first, and then if you'll still have some time, you should implement RSpec tests also. The Rspec book isn't so big, I read it twice completely and 3 time more some single chapters, it's really a great book, don't miss the chapters w

Re: [Rails] What is Rake and Gem is actually in RubyonRails.???

2011-02-03 Thread Peter Bell
Rake is a build system. Gems are packages of reusable ruby functionality so Gem is a package manager for providing easy access to the gems. Best Wishes, Peter On Feb 3, 2011, at 6:04 AM, amritpal pathak wrote: > I am new to Ruby on Rails and number of times interacted with rake and gem. > Can

Re: [Rails] SMS Rails 3 Plugin

2011-02-03 Thread Peter Bell
WHich provider do you want to use? A google search brings up gems for Clickatell (http://clickatell.rubyforge.org/) and textmagic (http://tuzinsky.com/textmagic/). I've heard of Clickatell but not used them. Haven't come across textmagic. I'm about to do a project using Twilio which seems to ha

Re: [Rails] Testing and application

2011-02-03 Thread Peter Bell
I'd start with cucumber and capybara to verify key stories. That way you at least have smoke tests for going through the system. If you have time after that, put in some lower level rspec tests - mainly around areas of complexity. Then every time you add a feature, change a piece of code or get

[Rails] Webrat with Rails3

2011-02-03 Thread Hoelzl H.
Hi everybody! I'm upgrading a Rails 2.3.5 app to Rails 3.0.3. But my integration tests aren't working. I'm getting this error: NoMethodError: undefined method `content_type' for nil:NilClass The line to blame is assert_select "input#artist.title.unsolved", 1 My test_helper.rb for webrat looks

Re: [Rails] Reference is nill

2011-02-03 Thread Colin Law
On 3 February 2011 08:53, lorbrito wrote: > models > > class Restaurant < ActiveRecord::Base >  self.table_name = "restaurants" >  self.primary_key = "idrestaurant" >  #SELECT `comidas`.* FROM `comidas` WHERE (`comidas`.restaurant_id = > 2) >  has_many :comidas, :foreign_key > =>"idrestaurant" ,:p

Re: [Rails] Basic app troubleshoot

2011-02-03 Thread Dai Odahara
Matt, I've never seen that kind of error 'alternative_url' before and there is no reference pages on google. Simply I guess that the error is saying there is no method 'alternative_url'. Is that method you code yourself? On Thu, Feb 3, 2011 at 9:51 PM, Colin Law wrote: > On 3 February 2011 12:42

[Rails] Re: What is Rake and Gem is actually in RubyonRails.???

2011-02-03 Thread Frederick Cheung
On Feb 3, 11:04 am, amritpal pathak wrote: > I am new to Ruby on Rails and number of times interacted with rake and gem. > Can anyone explain what is Rake and Gem in RoR? > The docs describe rake as 'a simple ruby build program with capabilities similar to make', although it's used for more tha

[Rails] Attention: Web application developers! Exciting event on Feb 26th in Pune (WebApps 2011)

2011-02-03 Thread arun
Hello, SiliconIndia is organizing WebApps 2011 at Pune on Feb 26th, 2011.Drawing well-renowned thought-leaders, contributors, influencer's, and organizations in the Web Development space, the conference offers insight to develop industry-leading Web Development projects. The conference brings tog

[Rails] What is Rake and Gem is actually in RubyonRails.???

2011-02-03 Thread amritpal pathak
I am new to Ruby on Rails and number of times interacted with rake and gem. Can anyone explain what is Rake and Gem in RoR? 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@goog

[Rails] ROR Developer

2011-02-03 Thread Ed cs
I am looking for a full time developer/coder for a new software business. - They will be required to come to meetings and speak with partners IT departments - In an ideal world they would have worked with or for a retailer in the past. - We are looking for someone to develop an RoR application t

[Rails] Reference is nill

2011-02-03 Thread lorbrito
models class Restaurant < ActiveRecord::Base self.table_name = "restaurants" self.primary_key = "idrestaurant" #SELECT `comidas`.* FROM `comidas` WHERE (`comidas`.restaurant_id = 2) has_many :comidas, :foreign_key =>"idrestaurant" ,:primary_key=>'idrestaurant' has_many :comentarios ,:for

[Rails] Re: [OT] Heroku sending out bills for 0.00?

2011-02-03 Thread Oto Brglez
I've sent mail to Heroku. Response: --- david, Feb-02 08:46 am (PST): Hey there, We had a small bug in our invoicing system this month that caused invoices to be sent out when there was nothing to charge. If you received an invoice for $0, you can safely ignore it. You may have also received dupl

[Rails] SMS Rails 3 Plugin

2011-02-03 Thread Sankalp
Can anyone tell me which plugin integrates SMS with rails 3? -- 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.com. To unsubscribe from this group, send email to rubyonrail

Re: [Rails] Basic app troubleshoot

2011-02-03 Thread Colin Law
On 3 February 2011 12:42, Matt Guy wrote: > Dear board,  I am running a fork of a quite large Rails 2.3.5 app (lots > of plugins etc.). It has worked before and I know it works on my > colleague's machine. I'm not sure where to begin troubleshooting this > though (I can't find much good Rails trou

[Rails] Basic app troubleshoot

2011-02-03 Thread Matt Guy
Dear board, I am running a fork of a quite large Rails 2.3.5 app (lots of plugins etc.). It has worked before and I know it works on my colleague's machine. I'm not sure where to begin troubleshooting this though (I can't find much good Rails troubleshooting material anywhere!). Can anyone help? T

[Rails] Re: [Rails3] Model.model_name.human not working with ActiveModel::Translation

2011-02-03 Thread Erwin
Thanks Konstantin ... you just confirmed what I finally found looking into lib/active_model/naming.rb => options.reverse_merge! :scope => [@klass.i18n_scope, :models], :count => 1, :default => defaults so I modified my locale files , and I was coming back here to mention it... and read your

[Rails] Re: Configure logger, reopen class

2011-02-03 Thread Frederick Cheung
On Feb 3, 10:57 am, Albert Català wrote: > Curtis j Schofield wrote in post #979342:> 2011/2/1 Albert Catal > : > >>    super(args) > >>   end > >>  def error(msg) > > > #also - this may give you an error > > #  i remember this as > > msg = %%ERROR#{'-'*5}>#{msg}% > > super > > >> raises an err

Re: [Rails] How can check some field value existense in the table.

2011-02-03 Thread Colin Law
On 3 February 2011 10:55, Prabu Jayaraman wrote: > In the frontend ,i have a text box which accepts program id .If we gives > value in that , it will  get stored in sql database, but before storing > i want to check whether the program id is exist in database. If exist > then we > instruct the use

Re: [Rails] [Rails3] Model.model_name.human not working with ActiveModel::Translation

2011-02-03 Thread Konstantin Shabanov
mongoid: models: profile: Profile model should be in plural form. On Thu, Feb 3, 2011 at 3:53 PM, Erwin wrote: > I am using ActiveModel::Translation, it's working fine for attributes, > but I cannot get the Model name translated > > in the console I get .. > > >Profile.i18n_scope =

Re: [Rails] Connectivity Code

2011-02-03 Thread Peter Hickman
Well it would seem to be a configuration problem with SQL Server and not the ruby code as such. My SQL Server experience is out of date but the error message seems to be coming from the ODBC driver so I would guess that the dbi package is working ok. Do you actually have a database called "TESTDB"

[Rails] Re: Configure logger, reopen class

2011-02-03 Thread Albert Català
Curtis j Schofield wrote in post #979342: > 2011/2/1 Albert Catal : >>super(args) >> end >> def error(msg) > > #also - this may give you an error > # i remember this as > msg = %%ERROR#{'-'*5}>#{msg}% > super > >> raises an error: [super: no superclass method `error' for >> >> >> What I did

[Rails] How can check some field value existense in the table.

2011-02-03 Thread Prabu Jayaraman
In the frontend ,i have a text box which accepts program id .If we gives value in that , it will get stored in sql database, but before storing i want to check whether the program id is exist in database. If exist then we instruct the user to give another program id. If not then ok to insert. how

Re: [Rails] Connectivity Code

2011-02-03 Thread Rekha
An error occurred Error code: Error Message:IM002(0)[Microsoft][ODBC Driver Manager] data source name not found and no default driver specified On Wed, Feb 2, 2011 at 8:04 PM, Peter Hickman < peterhickman...@googlemail.com> wrote: > It would be useful if you posted the error messages. > > -- > Yo

[Rails] [Rails3] Model.model_name.human not working with ActiveModel::Translation

2011-02-03 Thread Erwin
I am using ActiveModel::Translation, it's working fine for attributes, but I cannot get the Model name translated in the console I get .. >Profile.i18n_scope => :mongoid ( I am using Mongodb) >I18n.locale => :en >Profile.human_attribute_name("first_name") => "First Name" >Profile.model_nam

[Rails] Starling/Workling Setup

2011-02-03 Thread John Detloff
Hello everyone, I'm attempting to get starling and workling set up on my system, and have been trying to closely follow the instruction listed in this railscast: http://media.railscasts.com/videos/128_starling_and_workling.mov However, I've found a problem that I can't seem to solve on my own, an

Re: [Rails] how to set default_scope for the whole application?

2011-02-03 Thread Colin Law
On 2 February 2011 03:15, slava wrote: > I know I can set default_scope for individual active record model, but > can I set one up for the whole application? I guess you could derive a class from ActiveRecord::Base and put the default scope in there, then derive your models from that. I have not

Re: [Rails] Re: Simple Association Issue

2011-02-03 Thread Colin Law
On 2 February 2011 22:04, Chris Gallagher wrote: > Sure did: Sure did what? Please quote the previous post so each message makes sense. > > > class User < ActiveRecord::Base > >  has_many   :user_mailboxes >  belongs_to :other_user, :class_name => "UserMailbox" That does not look right. > end

[Rails] Testing and application

2011-02-03 Thread Hans Marmolin
Hi I have a rails application with no tests. I decided early not to use a TDD or to have any automatic tests as I am the only develope, as I tested it manually and as I thought many of the proposed test procedures could be substituted by just looking at the code. However I was wrong. When th

[Rails] Re: Ajax, form_tag, accept headers, Rails 3

2011-02-03 Thread Matthias S.
Don Mapp wrote in post #955952: > I am trying to do a search using an ajax call via a form_tag with > remote => true, a text_field_tag and a submit tag. The form_tag is > reaching the controller, but not as an ajax call. I am receiving a 406 > Not acceptable error, which I believe is to do with the

Re: [Rails] Re: Newbie question: Select with Model

2011-02-03 Thread Colin Law
On 1 February 2011 20:50, Tsega wrote: > Hey there Amador, > > I must confess, I am not a rails guru here but, according to the > documentation I have, the part that reads > > <%= f.select('entry', 'type_id', EntryType.all.collect {|t| [t.description, > t.id]}, {:include_blanks => 'None'}) %> > >

[Rails] Can't get a FORM to submit remotely in Rails 3.0.3?

2011-02-03 Thread Matthias S.
Hi, I am using Rails 3.0.3 with jQuery ujs. I want to send a form remotely. The view template **mains/index.html.erb** containing the form looks as follows: ... <%= form_tag :remote => true, :controller => "mains", :action => "search", :format => :js do %> <%= label_tag(:location_start, "Lo

Re: [Rails] Re: Newbie question: Select with Model

2011-02-03 Thread Colin Law
On 1 February 2011 20:20, Amador Antonio Cuenca wrote: > I tried to do it by myself, > I've a model named Entry with a field named type_id (added via migration) > and a model named EntryType with a field named description. >> >> class Entry < ActiveRecord::Base >> >>   belongs_to :entry_type The

[Rails] Re: How to communicate with salesforce

2011-02-03 Thread Kunjan Batavia
Thank you for all your support to guide me. -- 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.com. To unsubscribe from this group