[Rails] Re: I failed in C language , what about ruby on rails ??

2014-02-18 Thread Pinocchio
2014년 2월 18일 화요일 오후 7시 12분 31초 UTC+9, haytham agbariah 님의 말: > > Hello , I tried to learn C language , I failed twice in the C > course(because of Binary trees) .. > I believe that ruby on rails is the future , Should I give up on > programming ? or there is no connection between Failing in C a

Re: [Rails] Re: Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 3:11 AM, Farsheed Bamboat wrote: > > No, the CSS files are all in /public/stylesheets > If you are using Rails 3.2 (?) and above, stylesheets need to be in app/assets/stylesheets folder. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Farsheed Bamboat
Colin Law wrote in post #1137112: > On 18 February 2014 20:53, Farsheed Bamboat > wrote: > Have you looked at the html source of the page in the browser to see > if it looks right? > > Colin Yes, this is what I see (and it looks all right): Ganesh Ranganathan wrote in post #1137113: > On We

Re: [Rails] Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 2:23 AM, Farsheed Bamboat wrote: > No difference. :( Have you placed the css file in the app/assets/stylesheets folder? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop rec

Re: [Rails] Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Colin Law
On 18 February 2014 20:53, Farsheed Bamboat wrote: > Ganesh Ranganathan wrote in post #1137105: >> On Wed, Feb 19, 2014 at 1:45 AM, Farsheed Bamboat >> wrote: >> Try >> >> <% content_for :head do %> >> <%= stylesheet_link_tag 'ammos_new' %> >> <% end %> > > No difference. :( Have you looked at

[Rails] Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Farsheed Bamboat
Ganesh Ranganathan wrote in post #1137105: > On Wed, Feb 19, 2014 at 1:45 AM, Farsheed Bamboat > wrote: > Try > > <% content_for :head do %> > <%= stylesheet_link_tag 'ammos_new' %> > <% end %> No difference. :( -- Posted via http://www.ruby-forum.com/. -- You received this message because y

Re: [Rails] Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 1:45 AM, Farsheed Bamboat wrote: > <% content_for :head do %> > <%= stylesheet_link_tag '/stylesheets/ammos_new.css' %> > <% end %> Try <% content_for :head do %> <%= stylesheet_link_tag 'ammos_new' %> <% end %> -- You received this message because you are subscrib

[Rails] Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Farsheed Bamboat
Ganesh Ranganathan wrote in post #1137095: > On Wed, Feb 19, 2014 at 12:51 AM, Farsheed Bamboat > wrote: > >> Thanks Ganesh. I just tried that right now but the issue still persists. > > > Can you share the _form.html.erb code for head section > > Does it not work on development or Production, or b

Re: [Rails] Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 12:51 AM, Farsheed Bamboat wrote: > Thanks Ganesh. I just tried that right now but the issue still persists. Can you share the _form.html.erb code for head section Does it not work on development or Production, or both? -- You received this message because you are subs

[Rails] Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Farsheed Bamboat
Ganesh Ranganathan wrote in post #1137083: > On Tue, Feb 18, 2014 at 11:58 PM, Farsheed Bamboat > wrote: > You should use the <%= stylesheet_link_tag 'filename' %> instead of > including the http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "

Re: [Rails] CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 11:58 PM, Farsheed Bamboat wrote: > <% content_for :head do %> >href="/stylesheets/ammos_new.css"> > <% end %> > You should use the <%= stylesheet_link_tag 'filename' %> instead of including the https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoHZHrg2awsqOvgCE6

Re: [Rails] Compiled assets are not found in production mode run locally

2014-02-18 Thread Frederick Cheung
On Tuesday, February 18, 2014 4:22:23 PM UTC, Javix wrote: > On Tuesday, 18 February 2014 17:08:47 UTC+1, Ganesh Ranganathan wrote: > > > For other files you have to add config.assets.precompile += %w(filename.css). > > > I found the way to make it work: > > > add/modify the following line

[Rails] CSS Reference Lost in Some Cases

2014-02-18 Thread Farsheed Bamboat
Firstly, sorry if this is a basic question - I'm pretty new to rails. I've created a very basic rails application using the standard scaffold. I have two CSS files - one global (global.css) and one that is page specific (in this example, ammos.css). The global CSS has most of the CSS design and th

Re: [Rails] Compiled assets are not found in production mode run locally

2014-02-18 Thread Javix
On Tuesday, 18 February 2014 17:08:47 UTC+1, Ganesh Ranganathan wrote: > > > On Tue, Feb 18, 2014 at 9:29 PM, Javix >wrote: > >> Run in production: >> >> rails s -e production >> >> There are no CSS fiound ! >> > > This is strange. This issue can occur for individual css and js files but > appli

Re: [Rails] Re: Get database filled with data only one time?

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 9:32 PM, Luca Fuhl wrote: > But how does derive from ActiveRecord solve my problem? I want to > instance an object of the model i generated and that in an file that > isn't a controller, since i do this only one time. > The inheritance from ActiveRecord will allow you to

Re: [Rails] Compiled assets are not found in production mode run locally

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 9:29 PM, Javix wrote: > Run in production: > > rails s -e production > > There are no CSS fiound ! > This is strange. This issue can occur for individual css and js files but application.css and application.js should be added by default. For other files you have to add c

[Rails] Re: Get database filled with data only one time?

2014-02-18 Thread Luca Fuhl
i worked to a rails 4 essentials tutorial on lynda.com, well i don't think that i kept all the stuff in my mind since it's a lot if you never worked with rails before. Thanks for railstutorial.org, didn't know about it. I will work through it. But how does derive from ActiveRecord solve my prob

[Rails] Compiled assets are not found in production mode run locally

2014-02-18 Thread Javix
I have a strange behaviour with compiled assets when running a simple draft app locally: RAILS_ENV=production rake assets:precompile The aove command generated some css and js with finger printed values: i.e. application-43dcf2bdff355d2c3053e2aade23881a.css application-c67be452a576850d0c11559f9

[Rails] Re: I failed in C language , what about ruby on rails?

2014-02-18 Thread Robert Walker
haytham agbariah wrote in post #1137023: > Hello , I tried to learn C language , I failed twice in the C > course(because of Binary trees) .. > I believe that ruby on rails is the future , Should I give up on > programming ? or there is no connection between Failing in C and > Succession > in ruby

[Rails] Re: Rails where clause help

2014-02-18 Thread Arup Rakshit
Robert Walker wrote in post #1137052: > Robert Walker wrote in post #1137051: >> @users.where({ name: @request.requester, name: >> @request.regional_sales_mgr }).all >> >> Just note that this would never return any results since "name" can only >> have one value at a time. Sorry! for making you co

[Rails] Re: Rails where clause help

2014-02-18 Thread Robert Walker
Robert Walker wrote in post #1137051: > @users.where({ name: @request.requester, name: > @request.regional_sales_mgr }).all > > Just note that this would never return any results since "name" can only > have one value at a time. Except in the case where @request.requester == @request.regional_sal

[Rails] Re: Rails where clause help

2014-02-18 Thread Robert Walker
Arup Rakshit wrote in post #1137044: > Hi, > > I found one answer from - http://stackoverflow.com/a/20198450/2767755 > > @users = User.where(name: [@request.requester, > @request.regional_sales_mgr]).all > > Here @users will be having all those users, whose names are either > `@request.requester` o

[Rails] Rails where clause help

2014-02-18 Thread Arup Rakshit
Hi, I found one answer from - http://stackoverflow.com/a/20198450/2767755 @users = User.where(name: [@request.requester, @request.regional_sales_mgr]).all Here @users will be having all those users, whose names are either `@request.requester` or `@request.regional_sales_mgr`. But what is the Ru

Re: [Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Colin Law
On 18 February 2014 12:11, Pop Pop wrote: > yes i want to rake db:create > and fix the Errer 'FATAL: database "catarse_development" does not exist > How i fix that I think that it was rake db:migrate that gave you that error, I think it unlikely that db:create also gave it. If it does then copy

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Pop Pop
yes i want to rake db:create and fix the Errer 'FATAL: database "catarse_development" does not exist How i fix that -- 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 grou

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Rick
you want to do: rake db:create On Tuesday, February 18, 2014 5:08:05 AM UTC-5, Ruby-Forum.com User wrote: > > Hi i try to do that createdb mytestdb > [root@localhost catarse]# createdb mytestdb > createdb: could not connect to database postgres: FATAL: role "root" > does not exist > give this

[Rails] Re: Remote Junior Ruby on Rails Developer

2014-02-18 Thread Bojan Jordanovski
Hello , I am also Junior RoR developer with expirience in .Net and Sql databases and I am very interested to work with your team, if it's possible ? I would like to work with an experienced RoR developers, for learn and help, so I'm waiting for your feedback,please . Thank you On Friday, J

[Rails] Re: Understanding this Shopping Cart thing - rails4

2014-02-18 Thread Frederick Cheung
On Tuesday, February 18, 2014 10:56:13 AM UTC, MatCouto wrote: > Hey folks, > I was wondering what would be the best approach for this situation. > In my application layout I've got a partial which shows the user's cart if > there is any. > >> >> >> *- if @cart && !@cart.line_items.empty? %h1 Y

[Rails] Re: Rails.logger is nil when invoking rake tasks

2014-02-18 Thread maurizio de magnis
On Tuesday, February 18, 2014 11:51:54 AM UTC+1, Frederick Cheung wrote: > > > > On Tuesday, February 18, 2014 10:35:26 AM UTC, maurizio de magnis wrote: >> >> Good morning everybody, >> >> is it expected for the Rails.logger to be left uninitialized before >> executing a rake task? >> These are t

[Rails] Understanding this Shopping Cart thing - rails4

2014-02-18 Thread MatCouto
Hey folks, I was wondering what would be the best approach for this situation. In my application layout I've got a partial which shows the user's cart if there is any. > > > *- if @cart && !@cart.line_items.empty? %h1 Your Cart = render @cart* However, if I want to, for instance, click on t

[Rails] Re: Rails.logger is nil when invoking rake tasks

2014-02-18 Thread Frederick Cheung
On Tuesday, February 18, 2014 10:35:26 AM UTC, maurizio de magnis wrote: > > Good morning everybody, > > is it expected for the Rails.logger to be left uninitialized before > executing a rake task? > These are the steps to reproduce my test: > https://gist.github.com/olistik/9068351 > > With a

[Rails] Rails.logger is nil when invoking rake tasks

2014-02-18 Thread maurizio de magnis
Good morning everybody, is it expected for the Rails.logger to be left uninitialized before executing a rake task? These are the steps to reproduce my test: https://gist.github.com/olistik/9068351 Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

Re: [Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-18 Thread Colin Law
On 18 February 2014 00:23, Nadia Vu wrote: > Yep. All fixed now. > I checked for the columns like you asked. And I found out that the > typo/pluralization in the Taggings.rb file named the column wrong > ie: > > belongs_to :posts > > made the column name posts_id as opposed to post_id > > > after

[Rails] I failed in C language , what about ruby on rails ??

2014-02-18 Thread haytham agbariah
Hello , I tried to learn C language , I failed twice in the C course(because of Binary trees) .. I believe that ruby on rails is the future , Should I give up on programming ? or there is no connection between Failing in C and Succession in ruby on rails ? please , don't hesitate to share us ,

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Pop Pop
Hi i try to do that createdb mytestdb [root@localhost catarse]# createdb mytestdb createdb: could not connect to database postgres: FATAL: role "root" does not exist give this Errer thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] [JOBS Feedback Needed] Looking for Ruby on Rails newcomers who used to program in other languages

2014-02-18 Thread Fai Wong
Hi Folks, I've been coding 7 years in C# Asp .Net/T-sql and recently transition to RoR 8 months ago. It feels hard to break into the industry without sufficient real-world work experience even though I've coded a site pre-seed funded by an accelerator in Sydney and built an iPhone app in Phone

[Rails] Why does calling .delete_all on has_many relationship nullifies foreign keys.

2014-02-18 Thread marcin . raczkowski
I have several years of Rails expirience and this little bit ALWAYS gets me: class Foo < ActiveRecord::Base has_many :bars end class Bar < ActiveRecord::Base belongs_to :foo end # after creating some foos and bars foo.bars.delete_all #=> UPDATE bars SET foo_id = NULL WHERE foo_id = $1 Yes