[Rails] Re: Help me about Paperclip

2013-03-11 Thread haxuan lac
Thanks Colin.I understood what you said.i have done upload and dowload image with paperclip ,i hope you will help me about RoR.Thanks -- 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 unsubscr

[Rails] Re: Access instance variable in ajax rendered by controller - Rails

2013-03-11 Thread nikhil rn
Hello Robert Walker. After some operation in the controller, I am assigning a value to the variable. When I print it in the controller using a "puts", I am getting the right output. But when I render it to the view, I am NOT getting the required json alert in the javascript. Where am I going wrong

Re: [Rails] ActiveRecord::Base.default_scopes?

2013-03-11 Thread Colin Law
On 11 March 2013 21:26, powi wrote: > It's not documented since it's dynamically defined. Many dynamically defined methods are documented in various places (in the Rails Guides for example). If it is not documented how am I supposed to know how what it does? Colin > > On Monday, 11 March 2013 1

[Rails] Re: css url paths when moving it to a different folder

2013-03-11 Thread Robert Walker
Robert Walker wrote in post #1101143: > I find that the easiest way to figure out these relative paths is to > look at the paths generated in the HTML in the browser. Once you know > the exact path to your assets as seen by the browser it should be pretty > easy to deduce the relative path from one

[Rails] Re: css url paths when moving it to a different folder

2013-03-11 Thread Robert Walker
Dmitrij B. wrote in post #1100975: > Hey. Its simple quation, but have litle problem with this. > > Its my path for css - assets/content/stylsheets/my.css > Its path picture for background url - assets/images/picture.gif > > I do the following in my.css background: transparent > url(../../images/p

Re: [Rails] ActiveRecord::Base.default_scopes?

2013-03-11 Thread powi
It's not documented since it's dynamically defined. On Monday, 11 March 2013 12:14:02 UTC+2, Colin Law wrote: > > On 11 March 2013 07:30, powi > wrote: > > ActiveRecord models has a weird behavior. > > > > class Post < ActiveRecord::Base > > end > > > > % Post.default_scopes? # => true > >

Re: [Rails] Self Teaching NEWBIE question - Console issue

2013-03-11 Thread adolfo igualada
http://stackoverflow.com/questions/4922700/ruby-1-9-2-and-rails-3-cannot-open-rails-console 2013/3/11 adolfo igualada > Hi, > It appears that the readLine lib is not installed. > Search this library for windows. > > > > 2013/3/11 Jeff G. > > Hey guys, searched a bit, but with my lack of total u

Re: [Rails] Self Teaching NEWBIE question - Console issue

2013-03-11 Thread adolfo igualada
Hi, It appears that the readLine lib is not installed. Search this library for windows. 2013/3/11 Jeff G. > Hey guys, searched a bit, but with my lack of total understanding > figured best just to post a unique tip for help. > > > > > > I am self teaching myself Ruby on Rails and Ruby using Co

[Rails] Self Teaching NEWBIE question - Console issue

2013-03-11 Thread Jeff G.
Hey guys, searched a bit, but with my lack of total understanding figured best just to post a unique tip for help. I am self teaching myself Ruby on Rails and Ruby using CodeSchool.com and Michael Hartl's book Ruby on Rails 3 Tutorial. I am using Rubymine as suggested by a close friend who is

Re: [Rails] Re: Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Colin Law
On 11 March 2013 19:27, AmateurCoder wrote: > I have rbenv and ruby-build installed. > > $ rbenv install 2.0.0-p0 > > This downloads ruby 2.0.0-p0. It is not compiling and complains with the > following error > > BUILD FAILED > > Inspect or clean up the working tree at /tmp/ruby-build.20130311095

Re: [Rails] Re: Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Nicolas Desprès
On Mon, Mar 11, 2013 at 8:27 PM, AmateurCoder wrote: > I have rbenv and ruby-build installed. > > $ rbenv install 2.0.0-p0 > > This downloads ruby 2.0.0-p0. It is not compiling and complains with the > following error > > BUILD FAILED > > Inspect or clean up the working tree at /tmp/ruby-build.20

[Rails] Re: Access instance variable in ajax rendered by controller - Rails

2013-03-11 Thread Robert Walker
nikhil rn wrote in post #1101054: > I am making an ajax call to my controller. Controller is sending in the > response in an instance variable(as a json object). How can I access the > same in my ajax javascript? > > $(document).ready(function(){ > var currentCellText; > $(".inline").click(func

Re: [Rails] Server advice for RoR for newbies

2013-03-11 Thread JQ
I am thinking about buying my own server Why not just do it on Heroku or a similar system? Heroku is a very good option especially when you are starting out. If you really want to go it alone, you could also use Linode or a similar virtual server system (I believe Amazon now has something),

Re: [Rails] Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread AmateurCoder
On Monday, March 11, 2013 12:32:24 PM UTC-4, Colin Law wrote: > > On 11 March 2013 16:09, AmateurCoder > > wrote: > > I am having a problem installing Ruby 2.0.0-p0 using rbenv install on > Ubuntu > > 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on > > Virtualbox. > > >

[Rails] Re: Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread AmateurCoder
I have rbenv and ruby-build installed. $ rbenv install 2.0.0-p0 This downloads ruby 2.0.0-p0. It is not compiling and complains with the following error BUILD FAILED Inspect or clean up the working tree at /tmp/ruby-build.20130311095340.2322 Results logged to /tmp/ruby-build.20130311095340.23

[Rails] Re: Ruby On Rails Installation Error

2013-03-11 Thread Mitesh S.
Found the issue...it was problem with library path. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrail

[Rails] test.rb:1:in `require': no such file to load -- yaml (LoadError)

2013-03-11 Thread Mitesh S.
Hello I am trying to migrate my ruby from old server to new server. I did a copy of all the binaries and have set all the relevant patch. However I am not sure what I am missing. Below require works completely fine on my old server. however , does not work fine in new server. How can I know wher

[Rails] Stuck in railsinstaller for Windows at Step 5: opening RoR in Sublime

2013-03-11 Thread bruceb01
railsinstaller for Windows: 1. *[This is actually Step 5:] *The remaining steps will require you to have a text editor. There are various text editors you can use out there but I'll put one below that is fairly popular in the developer community. - Visit link to download: Subli

Re: [Rails] Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Colin Law
On 11 March 2013 16:09, AmateurCoder wrote: > I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu > 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on > Virtualbox. > > I am getting this error and the build is failing. I think I read that the > new RubyGe

Re: [Rails] Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread Nicolas Desprès
On Mon, Mar 11, 2013 at 5:09 PM, AmateurCoder wrote: > I am having a problem installing Ruby 2.0.0-p0 using rbenv install on > Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on > Virtualbox. > > I am getting this error and the build is failing. I think I read that the > n

[Rails] Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

2013-03-11 Thread AmateurCoder
I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on Virtualbox. I am getting this error and the build is failing. I think I read that the new RubyGems requires https. I have tried rbenv install --wi

Re: [Rails] How to order/match text_field with values in edit mode for existing and new values ?

2013-03-11 Thread Javix
On Monday, March 11, 2013 11:03:53 AM UTC+1, Colin Law wrote: > > On 11 March 2013 08:50, Javix > wrote: > > I'm using a nested form to enter worked time weekly. So when creating a > new > > week entry of 7 days I create a form as follows: > > The first thing you need to work out is where the

[Rails] Re: BEST WAY TO DEVELOP DYNAMIC DROPDOWNS

2013-03-11 Thread fuzzy
Hello adolfo, Here is another option, it is Ryan Bates' railscasts, some of his episodes are free and on others you pay a monthly subscription of $9.00: http://railscasts.com/episodes/88-dynamic-select-menus I think this just gives you another option. On Mar 10, 2:45 pm, adolfo igualada wrote:

[Rails] Access instance variable in ajax rendered by controller - Rails

2013-03-11 Thread nikhil rn
I am making an ajax call to my controller. Controller is sending in the response in an instance variable(as a json object). How can I access the same in my ajax javascript? This is my ajax call code: $(document).ready(function(){ var currentCellText; $(".inline").click(function() { currentCellTex

Re: [Rails] ActiveRecord::Base.default_scopes?

2013-03-11 Thread Colin Law
On 11 March 2013 07:30, powi wrote: > ActiveRecord models has a weird behavior. > > class Post < ActiveRecord::Base > end > > % Post.default_scopes? # => true > > This happens because Post.default_scopes returns an empty array and > .default_scopes? calls !![] which is true. But this can be confus

Re: [Rails] Re: Help me about Paperclip

2013-03-11 Thread Colin Law
On 11 March 2013 09:35, haxuan lac wrote: > Thanks Colin. Could you tell me about some System can use? You have not quoted the previous message, as I asked. I think I suggested ways of doing this in my first post, as below >> My advice, however, would be to switch to Ubuntu. This can either b

Re: [Rails] How to order/match text_field with values in edit mode for existing and new values ?

2013-03-11 Thread Colin Law
On 11 March 2013 08:50, Javix wrote: > I'm using a nested form to enter worked time weekly. So when creating a new > week entry of 7 days I create a form as follows: The first thing you need to work out is where the code is failing. For example you say that it is not displaying correctly. Is the

[Rails] Re: Help me about Paperclip

2013-03-11 Thread haxuan lac
Thanks Colin. Could you tell me about some System can use? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rub

Re: [Rails] Re: Help me about Paperclip

2013-03-11 Thread Colin Law
On 11 March 2013 03:23, haxuan lac wrote: > Could you explain for me why Wubi is not Reliable?Thanks.. My experience has been that it is ok for trying out Ubuntu but is not sufficiently reliable to be used as a working system. Colin -- You received this message because you are subscribed to th

Re: [Rails] Re: Help me about Paperclip

2013-03-11 Thread Colin Law
On 11 March 2013 01:27, haxuan lac wrote: > Thanks Colin. > i will try to with Virtual Machine.i'm a newbie about RoR so i want have > more instruction from you.Thanks. Please quote the previous message and insert your reply at appropriate points. This is a mailing list not a forum (though you m

[Rails] How to order/match text_field with values in edit mode for existing and new values ?

2013-03-11 Thread Javix
I'm using a nested form to enter worked time weekly. So when creating a new week entry of 7 days I create a form as follows: #timesheets/new.html.erb <%= form_for @timesheet do |f| %> <%= render 'fields', f: f %> <%= f.submit class: 'btn btn-large btn-primary'%> <% end %> #timesheets

[Rails] ActiveRecord::Base.default_scopes?

2013-03-11 Thread powi
ActiveRecord models has a weird behavior. class Post < ActiveRecord::Base end % Post.default_scopes? # => true This happens because Post.default_scopes returns an empty array and .default_scopes? calls !![] which is true. But this can be confusing, don't you think? -- You received this messa