similar to: Rails Syntax Change

Displaying 20 results from an estimated 11000 matches similar to: "Rails Syntax Change"

2012 Sep 10
4
Object Efficiency
So I am using rufus-scheduler to call a controller which in turn calls an email receiver to check emails... In my controller, I have an instance method called checkEmail In my rufus config file, I have to call MyController.new.checkEmail. Now I set it to run every 5 minutes. So the system creates a new MyController instance every 5 minutes. That''s very inefficient right? I guess
2012 Sep 04
11
I wanna make a new rails community :)
Hi everyone! I''m a newbie engineer. I started rails programming, but I''m learning alone and can''t understand other rails cord so much. So I wanna have friend with other newbie rails engineers and share a process of making apps. It is not for sharing the "result" of programming like Github, but for recording the almost all of process of making one app.
2012 Mar 16
0
Rails tests failing
http://dl.dropbox.com/u/15024055/CloudShot/shot_15032012_232654.png if i write the test like this its working just fine it passes green [code] it "should have the right title" do get ''view'' response.should have_selector(''title'', :content => "View Snippets") end [/code] but for
2013 Oct 23
2
how is mongoid syntax implemented ?
In mongoid, a ORM mapped database object is like below. The part "type: String" seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ? class Step include Mongoid::Document field :Label, type: String field :Descript, type: String field :ErrorText, type: String embedded_in :step_data end -- You received this message
2012 Sep 21
3
(koans) another problem (syntax error)
Hello, I now trying to solve this one : # Triangle Project Code. # Triangle analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # :equilateral if all sides are equal # :isosceles if exactly 2 sides are equal # :scalene if no sides are equal # # The tests for this method can be found in #
2013 Aug 21
3
syntax error, unexpected tRPAREN raised in server log
In my server log, I am seeing this error message that is raised in activesupport. 2013-08-12T23:06:08.932580+00:00 app[web.2]: SyntaxError (/app/vendor/bundle/jruby/1.9/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:374: syntax error, unexpected tRPAREN 2013-08-12T23:06:08.932580+00:00 app[web.2]: 2013-08-12T23:06:08.932580+00:00 app[web.2]: def () value = nil
2013 May 16
3
vim-puppet syntax highlight
Hi I am trying to install vim-puppet for syntax highlight of puppet manifest file. I first installed vim-puppet and then vim. Then I ran "vim-addon-manager -w install puppet" I am still unable to see the colours on site.pp bala@WheezyMaster:~$ vim-addon-manager # Name User Status System Status editexisting removed removed justify
2013 Sep 17
6
rspec-puppet require syntax
Can someone tell me the correct way to specify the following require statement in an rspec-puppet test? *require => [Class[''ssl''],Class[''pcre3''],Staging::Extract["nginx-${version}.tar.gz"]]* I tried this: *''require'' =>
2013 Jan 15
7
javascript flash messages gem?
Does anybody knows a gem for managing flash messages? I would want to add messages to the flash div in the client. Bootstrap support is a plus. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group,
2013 Jul 24
12
Want to send password via SMS
Hi I am saving password with hashed_password and salt in table. Now I need to send those passwords via SMS can it be possible.Kindly give me some suggestion plz . Thanks in advance Cheers -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2013 Jan 07
9
Devise Admin View password
Hi Everyone i am using devise for authentication for my app. Is there any way, Admin user can view other users password as normal string. Without storing there password as string in database? Please advise. -- 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
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all, I am using paperclip plugin. when i am trying to upload photo i am getting this error " Photo Paperclip::CommandNotFoundError " and i am getting this error on my server production mode. if i run on development mode on my server i can able to upload the pic. why this is happening i have no idea. can any help me out. Cheers, Kp -- You received this message because
2012 Dec 13
7
Thin server giving Stack level too deep error
Hi, I am using thin web server in my rails project. But it gives stack level too deep error. Couldn''t find any appropriate solution to this. I have tried updating the ruby but didn''t help. Regards, Sumit -- 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
2012 Sep 12
8
Round off method in 1.8.7
Hi all i am trying to use round method if have a value 2.08 i want it as 2.1 and it worked in 1.9.2 but not in 1.8.7 is there any other way of doing it. USING 1.9.2 1.9.2p320 :001 > 2.08.round(1) => 2.1 1.9.2p320 :002 > 2.04.round(1) => 2.0 USING 1.8.7 irb(main):001:0> 2.08.round => 2 irb(main):002:0> 2.08.round(1) ArgumentError: wrong number of arguments (1 for
2012 Aug 25
11
Any meetup in india ?
Hi all specially indian rails developer & designer , Rails community is growing so fast in India , it is necessary to know what they are doing , how they are doing and what they like in it .So, I''m wondering we should arrange Meet-up in india , what you say ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2012 Dec 13
23
make rails connect with database
i''m newbie in rails. i have problem with how to connect rails with database. before i can connect it with command "rake db:create" to create database. and "rake db:migrate" to migrate schema to database. but, i want to connect rails with database that i have before, not create it via rails. can you help me? -- Posted via http://www.ruby-forum.com/. -- You received
2012 Sep 11
10
wickedpdf
Hi all i''m trying to generate pdf and i got this error Location of wkhtmltopdf unknown and i also get Bad wkhtmltopdf''s path gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize'' /EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new'' /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf''
2012 Oct 09
10
Auto refresh the drop-down
I have an option in dropdown like "Add new option" written using grouped_collection_select. And when user clicks on the "Add new option". A pop up dialog appears to add a new value. And when I click create it hits the database and adds the value to the db. But It never updates the dropdown list. Suggest me a way to auto refresh only the current dropdown with the new
2013 May 20
6
MapServer setup with rails in ubuntu 12.04
Hi i have one rails application in which i need to setup the mapserver i have added the gem https://github.com/sourcepole/ruby_mapscript but while running the command require "rubygems" require "ruby_mapscript" include Mapscript it use to tell me LoadError (cannot load such file -- mapscript): can anybudy help me on this Thanks in Advance Arvind -- You received
2013 Feb 07
11
Rails change default time zone.
Hello everyone, I am using rails 3.2.8. I want to change time zone to New York time. I changed following, but didn''t work #config/application.rb config.time_zone = ''Eastern Time (US & Canada)'' config.active_record.default_timezone = ''Eastern Time (US & Canada)'' If am wrong please clarify. Thank You! -- You received this message