[Rails] Re: How to use Ajax with rails ?

2012-10-30 Thread tonypm
I have just been reading this and finding it helpful background with some nice examples: http://madebydna.com/all/code/2011/12/05/ajax-in-rails-3.html On Oct 29, 10:41 am, 1334 i...@sipspp.net wrote: On Friday, October 26, 2012 5:38:20 PM UTC+2, Fahim Patel wrote: Hi all,    Can any one

Re: [Rails] Photo Paperclip::CommandNotFoundError

2012-10-30 Thread keerthi priya
i have changed the file permissions and it worked for me . i dont know whether it is the way to solve it . as i it is a plugin no other gems need i hope i am right. what is the best way to solve such issues. i worked for me by changing the file permissions of the folder but it is not the write way

[Rails] pass javascript date variable to rails controller as params

2012-10-30 Thread ruby rails
I have an application where jquery fullcalendar is implemented. On day click I need to pass the selected date as params to rails controller. When I alert the date inside dayclick function, I am getting the date in the format of Tue Oct 30 2012 12:40:20 GMT+0530 (IST).. But when I pass as params

Re: [Rails] [JOB] Rails Developer - Denver Colorado

2012-10-30 Thread hanish jadala
can you give your mail id to send Resume On Tue, Oct 23, 2012 at 10:01 PM, Beau G. li...@ruby-forum.com wrote: I'm looking for a RoR Developer for a Denver, CO client for a full time, salaried position paying to 90k + benefits. If anyone would like more information, please shoot me a resume

Re: [Rails] [JOB] Rails Developer - Denver Colorado

2012-10-30 Thread Jordon Bedwell
On Tue, Oct 30, 2012 at 2:43 AM, hanish jadala emailtohoneyr...@gmail.com wrote: can you give your mail id to send Resume Already failed. Look at the bottom of his email. Also, if you could miss that what would you miss in your code? -- You received this message because you are subscribed to

Re: [Rails] Photo Paperclip::CommandNotFoundError

2012-10-30 Thread Colin Law
On 30 October 2012 06:42, keerthi priya emailtokeerthipr...@gmail.com wrote: i have changed the file permissions and it worked for me . i dont know whether it is the way to solve it . as i it is a plugin no other gems need i hope i am right. what is the best way to solve such issues. i worked

[Rails] Unicorn deployment error

2012-10-30 Thread Sanjay Vel
I have a simple rails3 application. Trying to deploy this app using unicorn-4.4.0, I am getting the following error. unicorn -c config/unicorn/development.rb -D -d {:unicorn_options= {:listeners=[], :config_file=config/unicorn/development.rb}, :app=

Re: [Rails] Unicorn deployment error

2012-10-30 Thread Norbert Melzer
Take a look at the logs as the message suggest it to you and copy and paste the relevant parts to this list. Am 30.10.2012 10:06 schrieb Sanjay Vel gkalpanapraka...@gmail.com: I have a simple rails3 application. Trying to deploy this app using unicorn-4.4.0, I am getting the following error.

Re: [Rails] Newbie - deployment, hosting

2012-10-30 Thread Dmitry Maksyoma
Hi, Heroku is quite expensive, if you go for a dedicated hosting you'll have more power (i.e. shell) and pay less money. For example, http://www.hetzner.de/en/. On Tuesday, October 30, 2012 2:44:46 AM UTC+13, yaniv pr wrote: Thanks for your answer, I may go for it. The thing is, I'd really

Re: [Rails] Photo Paperclip::CommandNotFoundError

2012-10-30 Thread keerthi priya
well i have gave permission to public/system/students all those folder to 777 permissions and i have restart my server and it worked . On Tue, Oct 30, 2012 at 2:04 PM, Colin Law clan...@googlemail.com wrote: On 30 October 2012 06:42, keerthi priya emailtokeerthipr...@gmail.com wrote: i have

[Rails] Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
I had created a demo web application by executing rails tickets and then i executed rails script/server to run it on localhost. Initially i was able to execute the application in the browser by typing localhost:3000 in the address bar, but then I deleted the folder tickets from my hard disk. Now

[Rails] Re: customizing scaffold templates

2012-10-30 Thread Sreekesh O.
Can you please share your scaffold generator template modifications with me? im tryng to do that but getting lots of error -- 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,

[Rails] Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
I was trying to create custom view pages in ROR as seen in http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator then i got some errors ** (erb):6:in `template': compile error (SyntaxError) (erb):3: syntax

Re: [Rails] Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Norbert Melzer
Your old one was rails 2.x I guess, but your new one is 3 or above. The new command for starting the server is 'rails s' Am 30.10.2012 11:24 schrieb vipin v. li...@ruby-forum.com: I had created a demo web application by executing rails tickets and then i executed rails script/server to run it

Re: [Rails] Error while customizing view template in Ruby on Rails

2012-10-30 Thread KUL KING
Share your controller code where you are rendering this view. On Tue, Oct 30, 2012 at 3:35 PM, Sreekesh O. li...@ruby-forum.com wrote: I was trying to create custom view pages in ROR as seen in http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator

[Rails] Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
i have rails version 2.3.14 with 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, send

[Rails] Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
with rails s it gave the following output:- http://paste.ubuntu.com/1317610/ but still i was unable to localhost:3000 -- 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

[Rails] Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
can someone please help me asap.. please ! -- 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,

[Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
The controller code for edit view: ** def edit @%= file_name % = %= class_name %.find(params[:id]) end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread KUL KING
Where the file_name and class_name are declared? I don't see them declared inside the edit function. On Tue, Oct 30, 2012 at 3:58 PM, Sreekesh O. li...@ruby-forum.com wrote: The controller code for edit view: ** def edit @%= file_name % = %=

Re: [Rails] Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Jim Ruther Nill
On Tue, Oct 30, 2012 at 6:44 PM, vipin v. li...@ruby-forum.com wrote: i have rails version 2.3.14 with me you should've not deleted the script/server file. you're using rails 2 so the proper way to start the server is ruby script/server not rails script/server. the shorcut to this is just

Re: [Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Jim Ruther Nill
On Tue, Oct 30, 2012 at 7:01 PM, KUL KING kulking...@gmail.com wrote: Where the file_name and class_name are declared? I don't see them declared inside the edit function. On Tue, Oct 30, 2012 at 3:58 PM, Sreekesh O. li...@ruby-forum.com wrote: The controller code for edit view:

[Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
These are files in rails installation folder the scaffold-generator template. These are defined default by rails path of files in linux: usr/lib/ruby/gems/1.8/gems/rails 2.3.5/lib/rails-generator/generator/components/scaffold/template -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
but now i have done it, so what is the solution?? will i never be able to run the app in server again?? -- 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

[Rails] why is not passing model in locale flash message?

2012-10-30 Thread Mauro
def update if @unsafe_building.update_attributes(params[:company]) format.html { redirect_to @unsafe_building, notice: t('flash.actions.update.notice') } in it.yml locale file I have: it: flash: actions: create: notice: %{model} è stato creato con successo.

[Rails] Re: Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
Jim ruther Nill wrote in post #1081968: On Tue, Oct 30, 2012 at 7:01 PM, KUL KING kulking...@gmail.com wrote: @%= file_name % = %= class_name %.find(params[:id]) end you are using erb code inside the controller. i don't get why you want to do this or if it's even possible to do it

Re: [Rails] Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Tommaso Visconti
Il 30/10/12 11:46, vipin v. ha scritto: with rails s it gave the following output:- http://paste.ubuntu.com/1317610/ but still i was unable to localhost:3000 I think you just created a new app inside the s folder. Please paste the output of ruby script/server command -- You received this

Re: [Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Tommaso Visconti
Il 30/10/12 11:58, Sreekesh O. ha scritto: The controller code for edit view: ** def edit @%= file_name % = %= class_name %.find(params[:id]) end You put ERB, which must be in the views, in the controller. This is how the controller should be

Re: [Rails] why is not passing model in locale flash message?

2012-10-30 Thread Tommaso Visconti
Il 30/10/12 12:12, Mauro ha scritto: def update if @unsafe_building.update_attributes(params[:company]) format.html { redirect_to @unsafe_building, notice: t('flash.actions.update.notice') } in it.yml locale file I have: it: flash: actions: create:

Re: [Rails] Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Tommaso Visconti
vipin v. ha scritto: I had created a demo web application by executing rails tickets and then i executed rails script/server to run it on localhost. Initially i was able to execute the application in the browser by typing localhost:3000 in the address bar, but then I deleted the folder tickets

[Rails] SQLITE Database Browser question

2012-10-30 Thread Lars
Is there a way to add another field to a blog(i.e. another text field) using database browser. I was able to make the changes using the Sqlite Database Browser and saved but the changes didn't migrate over to my app. -- You received this message because you are subscribed to the Google Groups

[Rails] 500 Internal Server Error

2012-10-30 Thread Nomosyn
Hello ! ruby 1.9.2p323 (2012-05-22 revision 35755) [x86_64-darwin11.4.0] Well... I get stuck on this error https://gist.github.com/3974521, and don't know what to do with it... Thank you for the hand ! -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Re: How to use Ajax with rails ?

2012-10-30 Thread Luis Vasconcellos
http://railscasts.com/episodes?utf8=%E2%9C%93search=ajax * Luis Va**sconcellos *|* *Web Developer at DTM wblog: luisvasconcellos.com twitter: @vasconcelloslf http://www.twitter.com/vasconcelloslf mobile: 55 21 95100576 http://dtmtec.com.br http://www.dtmtec.com.br @dtmtec

[Rails] Re: Photo Paperclip::CommandNotFoundError

2012-10-30 Thread rubenM
Hi all, I had the same issue and i lost one week searching for the answer, and yestarday hahaha, I finally found it, you have to install the cocaine gem version 0.3.2 El sábado, 27 de octubre de 2012 07:00:50 UTC-3, keerthi priya escribió: Hi all, I am using paperclip plugin. when

[Rails] Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O S
I was trying to create custom view pages in ROR as seen inhttp://blog.hulihanapplications.com/browse/view/55... http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator then i got some errors ** (erb):6:in

Re: [Rails] Re: Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Jim Ruther Nill
On Tue, Oct 30, 2012 at 7:11 PM, vipin v. li...@ruby-forum.com wrote: but now i have done it, so what is the solution?? will i never be able to run the app in server again?? create a new rails app and copy script/server? -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] 500 Internal Server Error

2012-10-30 Thread Tommaso Visconti
Il 29/10/12 17:14, Nomosyn ha scritto: Hello ! ruby 1.9.2p323 (2012-05-22 revision 35755) [x86_64-darwin11.4.0] Well... I get stuck on this error https://gist.github.com/3974521, and don't know what to do with it... Thank you for the hand ! maybe rows: 1, it isn't an option for text_field

Re: [Rails] 500 Internal Server Error

2012-10-30 Thread Luis Vasconcellos
Yes, it is only a text area option, and also the second parameter that a text_field accepts it's the prompt value (default value) of the field, and that second parameter needs to be a string. * Luis Va**sconcellos *|* *Web Developer at DTM wblog: luisvasconcellos.com twitter: @vasconcelloslf

Re: [Rails] why is not passing model in locale flash message?

2012-10-30 Thread Mauro
On 30 October 2012 12:16, Tommaso Visconti tommaso.visco...@gmail.com wrote: Il 30/10/12 12:12, Mauro ha scritto: def update if @unsafe_building.update_attributes(params[:company]) format.html { redirect_to @unsafe_building, notice: t('flash.actions.update.notice') }

Re: [Rails] SQLITE Database Browser question

2012-10-30 Thread Hassan Schroeder
On Mon, Oct 29, 2012 at 4:17 PM, Lars lars...@gmail.com wrote: Is there a way to add another field to a blog(i.e. another text field) using database browser. I was able to make the changes using the Sqlite Database Browser and saved but the changes didn't migrate over to my app. The proper

Re: [Rails] why is not passing model in locale flash message?

2012-10-30 Thread Tommaso Visconti
Il 30/10/12 12:40, Mauro ha scritto: Maybe you should pass model as argument? t('flash.actions.update.notice', :model = @unsafe_building.class) Yes, now model is passed but not translated. Here: submit: create: 'Crea %{model}' update: 'Aggiorna %{model}' submit: 'Invia

[Rails] Re: Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread vipin v.
Please paste the output of ruby script/server command output is vverma@l-vverma:~/myExp/tickets$ rails script/server create File exists - script/server -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Re: Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-30 Thread Colin Law
On 30 October 2012 11:51, vipin v. li...@ruby-forum.com wrote: Please paste the output of ruby script/server command output is vverma@l-vverma:~/myExp/tickets$ rails script/server create File exists - script/server That looks like the output from rails script/server not ruby

[Rails] What to use Cofeescript or Jquery ?

2012-10-30 Thread Fahim Patel
Hi all, I read about Cofee Script.But i get confused . Rails Community tells to use Cofee Script. Q 1. Can one tell me Advantage of Cofeescript. Q 2. I wish to use Ajax but should i use Jquery and CofeeScript. Thanks Regards Fahim Babar Patel -- You received this message because you are

[Rails] rspec : how to I do this ?

2012-10-30 Thread roelof
Hello, I have followed the rspec course on code-school. Now I try to make it work on my own project. Let's say I have this model : class message ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :category end Now I try to make a test so I can

Re: [Rails] rspec : how to I do this ?

2012-10-30 Thread Hassan Schroeder
On Tue, Oct 30, 2012 at 6:29 AM, roelof rwob...@hotmail.com wrote: I have followed the rspec course on code-school. Now I try to make a test so I can verify that a message has a title and a body. How can I do this ? I would suggest you use the rspec generators to create a model or scaffold

[Rails] Can't set a secure session cookie

2012-10-30 Thread Noha MS
I'm trying to set the session cookie secure flag to true. I added the following to my environments/production.rb ActionController::Base.session_options[:secure] = true In the production mode I don't see the set-cookie header in the server response (I'm using the Tamper Data Firefox tool to view

Re: [Rails] rspec : how to I do this ?

2012-10-30 Thread roelof
Thanks for the answer. I will try to find out how this works. As far as I can find it this is not covered in this code school course. Roelof Op dinsdag 30 oktober 2012 14:48:47 UTC+1 schreef Hassan Schroeder het volgende: On Tue, Oct 30, 2012 at 6:29 AM, roelof rwo...@hotmail.com

Re: [Rails] Newbie - deployment, hosting

2012-10-30 Thread Dave Aronson
On Tuesday, October 30, 2012, Dmitry Maksyoma wrote: Heroku is quite expensive, Maybe if you have a large app, but it sounded like the app in question was a typical small learner app. In that case, he can likely host it there for free. Can't get much cheaper than that. ;-) -Dave -- Sent

Re: [Rails] Newbie - deployment, hosting

2012-10-30 Thread Tommaso Visconti
Il 30/10/12 16:54, Dave Aronson ha scritto: On Tuesday, October 30, 2012, Dmitry Maksyoma wrote: Heroku is quite expensive, Maybe if you have a large app, but it sounded like the app in question was a typical small learner app. In that case, he can likely host it there for free. Can't

Re: [Rails] rspec : how to I do this ?

2012-10-30 Thread Colin Law
On 30 October 2012 15:47, roelof rwob...@hotmail.com wrote: Thanks for the answer. I will try to find out how this works. As far as I can find it this is not covered in this code school course. Try railstutorial.org, which is free to use online. It gives a good introduction to testing. Colin

Re: [Rails] rspec : how to I do this ?

2012-10-30 Thread Rodrigo Martins
You can use the gem shoulda-matchers[1] to test it. She works very well with rspec. And it is very easy to test this. With it you can test the attributes, calls from models and stuff ... You can use the gem-rails factory-girl, best to test the interactions, writing less and being more

[Rails] reading bytes and blocking

2012-10-30 Thread John Merlino
I come across this method: read(n=nil, buffer=nil) – read n bytes (or fewer, if EOF is reached), blocking if necessary, until the bytes are ready. What does it mean blocking if necessary? Blocking what? -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] reading bytes and blocking

2012-10-30 Thread Colin Law
On 30 October 2012 16:20, John Merlino stoici...@aol.com wrote: I come across this method: read(n=nil, buffer=nil) – read n bytes (or fewer, if EOF is reached), blocking if necessary, until the bytes are ready. What does it mean blocking if necessary? Blocking what? It means that if it is

[Rails] Issue starting server in production that don't use activeRecord

2012-10-30 Thread arturo drlt
I have been working in one application that don't have database and for storage only use redis and I never tried before to run it in production environment and o surprise the server is run but when try to load it says ups something went wrong and in the log it says ActiveRecord no conection

[Rails] Re: What to use Cofeescript or Jquery ?

2012-10-30 Thread Robert Walker
fahim patel wrote in post #1082003: Hi all, I read about Cofee Script.But i get confused . Rails Community tells to use Cofee Script. Q 1. Can one tell me Advantage of Cofeescript. Q 2. I wish to use Ajax but should i use Jquery and CofeeScript. 1. CoffeeScript is just a language that

[Rails] Re: Issue starting server in production that don't use activeRecord

2012-10-30 Thread arturo drlt
Issue solved with a little modification to application.rb changin require rails/all for require action_controller/railtie require action_mailer/railtie require active_resource/railtie require rails/test_unit/railtie require sprockets/railtie and removing the white_list and removing some lines

Re: [Rails] Newbie - deployment, hosting

2012-10-30 Thread yaniv pr
I intend to step out of the 'learner app' zone as quickly as I can :) Thank you all On Tuesday, October 30, 2012 6:00:21 PM UTC+2, Tommaso Visconti wrote: Il 30/10/12 16:54, Dave Aronson ha scritto: On Tuesday, October 30, 2012, Dmitry Maksyoma wrote: Heroku is quite expensive,

[Rails] Re: Does session_secure work?

2012-10-30 Thread Noha MS
I tried ActionController::Base.session_options[:secure] = true and the session cookie is not set at all. If I set it to false everything works fine but if it's true the server never sets the cookie even if the request is over https (although my understanding is that it should set it anyway) --

Re: [Rails] Newbie - deployment, hosting

2012-10-30 Thread Jordon Bedwell
On Tue, Oct 30, 2012 at 10:54 AM, Dave Aronson googlegroups2d...@davearonson.com wrote: On Tuesday, October 30, 2012, Dmitry Maksyoma wrote: Maybe if you have a large app, but it sounded like the app in question was a typical small learner app. In that case, he can likely host it there for