[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Not sure the solution is in here but https://www.altamiracorp.com/blog/employee-posts/rails-3 Didn't work for me. I really need a solution to the path problem :-) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Walter Davis wrote in post #1115639: > I find that I do have to do this after every change at the server. I > don't need to include the environment, it seems to be a default somehow. > rake assets:precompile is enough (I do run rvm on the server, so the > bundle exec part is inferred as well). > >

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
Additional question. Should I run "RAILS_ENV=production bundle exec rake assets:precompile" on the server? Must I do that each time I add a new asset, e g image or new css file? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Gr

[Rails] Re: Problem with assets and path

2013-07-16 Thread Paul Bergstrom
One more thing. The host has a www directory. When using rails the app is in another directory with a .htaccess and a RewriteRule in www pointing to the rails app and dispatch.fcgi. Could it be a problem with that? -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

[Rails] Problem with assets and path

2013-07-15 Thread Paul Bergstrom
My page doesn't load css and images in production mode. For css I get a path like "/appname/assets/...". What's wrong? Should be without appname. I tried the config.assets.paths but no luck. My app runs on fcgi (if that could mean anything) on the production server. Locally I use passenger and ha

[Rails] Send multiple emails

2013-07-06 Thread Paul Bergstrom
Any problems sending a lot of emails with rails like this: @members = Members.all @members.each do |m| MemberMailer.message(@message, m).deliver end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Getting json data to div and partial after ajax call?

2013-06-08 Thread Paul Bergstrom
Fernando Jesus wrote in post #571: > Have u solve your problem? i have the same issue U_U but without > coffeeScript Sorry to say, but no I didn't. Still looking. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Re: Re: Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
Norbert Melzer wrote in post #1110905: > 2013/6/1 Paul Bergstrom > I mean, if your js-file is /app/views/test/index.js.erb AND your > controller > is /app/controllers/test_controller.rb AND you have route setup to the > index action, then you have to point your browser to "

[Rails] Re: Re: Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
Colin Law wrote in post #1110893: > On 1 June 2013 10:52, Paul Bergstrom wrote: >>> in the browser to see what is being sent to the browser. >>> >>> Colin >> >> Doesn't seem to load. This should be so incredible simple. Why doesn't >>

[Rails] Re: Re: Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
t; Answer this questions as exactly as possible or we can't help. Thank you for your help. Should this basic example work, onload? Or should I skip extra js-files? > Am 01.06.2013 11:52 schrieb "Paul Bergstrom" : -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
Colin Law wrote in post #1110879: > On 1 June 2013 09:00, Paul Bergstrom wrote: >> >> Not sure how I can explain it better. It's a very simple example. >> >> When going with the browser to an action with a corresponding *.js.erb >> file should the JavaScri

[Rails] Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
Colin Law wrote in post #1110840: > On 31 May 2013 18:36, Paul Bergstrom wrote: >> If I have a file in view /test called index.js.erb and in it a simple >> alert("hello") shouldn't that run when I go to /test/index? It doesn't. > > I think you will hav

[Rails] Re: Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
I get an array back in json. That is loaded but without styling. -- 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

[Rails] Re: Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
Benjamin Iandavid Rodriguez wrote in post #1110828: > For what you say. > > After you get the JSON response the partial is already processed so you > just need to update the correct div with the correct info. > > Use jQuery's append or html properties to update your div

[Rails] Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
I'm able to get json data back after an ajax call and into a div. But how do I get it into html, styled format? How about getting it to a partial? How do I do that in coffeescript? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] A simple javascript alert not working

2013-05-31 Thread Paul Bergstrom
If I have a file in view /test called index.js.erb and in it a simple alert("hello") shouldn't that run when I go to /test/index? It doesn't. -- 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 u

[Rails] Re: Re: Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
Colin Law wrote in post #1110802: > On 31 May 2013 15:21, Paul Bergstrom wrote: >> I'm kind of lost with Rails right now. What was simple and beautiful is >> no more. I've never understood REST and I think this is what gives me >> problems. >> >>

[Rails] Re: Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
Kad Kerforn wrote in post #1110772: > what do you mean by : Rails didn't compile in development > can you copy your log file in a gist , > > Le vendredi 31 mai 2013 09:45:09 UTC+2, Ruby-Forum.com User a crit : Not sure what I mean. I just assumed it was something with compiling. But it could be

[Rails] Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
I have a strange problem that I suspect has to do with compiling. In development do I need to do anything after I change the code? It still loads a file, looking in the log file, that it shouldn't. I thought Rails didn't compile in development. -- Posted via http://www.ruby-forum.com/. -- You r

[Rails] Search and routes

2013-05-07 Thread Paul Bergstrom
How do I define the route for a search form that goes to index action, which either lists all, if no search, or the search result? -- 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

[Rails] Ajax confusion

2012-01-23 Thread Paul Bergstrom
I'm a bit confused about ajax. If I have a link, do I add the href, data-remote="true" and data-method in there? Or do I make the actual call in a separate script with $.ajax({})? Or both? The same thing with a form. Is that suppose to have an action path and an jquery axaj url: "..." path at the

[Rails] Re: Scaffold and Localize

2011-11-22 Thread Paul Bergstrom
Norbert Melzer wrote in post #1033193: > Cant test it straight away, but > > f.label(t(:whatever)) > > should do the trick Thanks. Would be great if the possibility to localize could be built-in directly in scaffold. -- Posted via http://www.ruby-forum.com/. -- You received this message bec

[Rails] Scaffold and Localize

2011-11-22 Thread Paul Bergstrom
Is there a way to translate the labels in a scaffold? Using <%= f.label :lastname %> instead of having to change that to <%= t(:firstname) %> -- 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

[Rails] Find a record in a find array

2011-09-16 Thread Paul Bergstrom
A find will make an array, right? Or is it a hash? Anyway, if I have several records in an array/hash, how can I find e.g. record with id 10 and it's content? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: Problems with AJAX and bind

2011-08-26 Thread Paul Bergstrom
Solved it: $('a[data-method="delete"]').live('ajax:success', function(){ StopLoader() }); -- 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

[Rails] Problems with AJAX and bind

2011-08-26 Thread Paul Bergstrom
I have a list of topics which is loaded as a partial into a div. Each topic has a destroy action and an id. It works great to add topics and also to delete, except that I can't make the loader symbol to stop running. I guess do to the fact that the link, the initializer, of the data-remote action

[Rails] Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
7stud -- wrote in post #1017753: > This is what I've been doing for jquery: > jquery.rails.js Thank you. Now it works. :-) So I've been sitting with this problem for a long time and this was what I missed. Did I miss it or was it poorly explained? -- Posted via http://www.ruby-forum.com/. -

[Rails] Re: Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
lionel first-developer wrote in post #1017744: > @Paul Bergstrom : > > In rails 3, handleling an Ajax request is too easy with Ujs. I'll try to Btw, are you sure I don't need an extra gem for UJS? -- Posted via http://www.ruby-forum.com/. -- You received this mess

[Rails] Re: Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
lionel first-developer wrote in post #1017744: > @Paul Bergstrom : > > Just try this for your case an keep me update. > > Good luck Thanks for the help. I tried it. It makes a http request and goes to the url. No alert message. Strange. -- Posted via http://www.ruby-forum

[Rails] Re: Re: Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
Colin Law wrote in post #1017722: > On 21 August 2011 15:16, Paul Bergstrom wrote: >>> >>> What do you mean by that? It *should* go to the action, as an ajax >>> call. >>> >>> Colin >> >> It goes to the "page", the url. With aj

[Rails] Re: Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
Colin Law wrote in post #1017714: > On 21 August 2011 10:59, Paul Bergstrom wrote: >>> >>> Cheers, >>> Eric >> >> Thanks. But are you sure this works? Doesn't work here. >> >> If I have <%= link_to 'Test', { :action => &

[Rails] Re: Rails, jquery and Ajax

2011-08-21 Thread Paul Bergstrom
"Eric Björkvall" wrote in post #1013626: > One way: > > link_to "#", new_comment_path, :remote => true, :id => > "new-comment-link" > > new.js.erb > > $(#new-comment-link).hide(); > $('#commentlist').html('<%= render :partial => "comments" %>') > > > You can use ruby logic in the .js.erb file - j

[Rails] Re: AJAX and select

2011-08-20 Thread Paul Bergstrom
Paul Bergstrom wrote in post #1008857: > Solved it. > > jquery seems like much more coding, more complex, than prototype. I > think I'll stay with the latter. Comments? Pros and cons? Still have problem with making a basic ajax call and have a div updated. No explaining to be

[Rails] How to ping twingly

2011-08-04 Thread Paul Bergstrom
I've done my own blog in Rails. How do I add a ping service like twingly? Any gem or plugin for that? I found this at http://rpc.twingly.com/ Not sure how to implement it. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ru

[Rails] Re: Rails, jquery and Ajax

2011-07-27 Thread Paul Bergstrom
Chirag Shah wrote in post #1013312: > Why don't you use remote_function() ? > > - Chirag Shah I used to do that but now I'm trying to do it with jquery. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Rails, jquery and Ajax

2011-07-27 Thread Paul Bergstrom
How do I make an ajax call and then update a div with a partial? I've tried this but it's not working. Comment is created but the partial is not loaded. //view Testlink //controller def new @comment = Comment.new @comment.save respond_to do |format|

[Rails] Re: Formatting for I18n

2011-03-30 Thread Paul Bergstrom
zindelo wrote in post #990018: > You might want to have a look at: > > # indentation requirements > http://www.yaml.org/spec/1.2/spec.html#Basic > > # i18n with active record > http://guides.rubyonrails.org/i18n.html#translations-for-active-record-models > > # example locale files, including active

[Rails] Re: Formatting for I18n

2011-03-30 Thread Paul Bergstrom
It works if I add this in en.yml. errors: template: body: "" header: one: "" other: "" messages: too_short: "is too short (minimum is {{count}} characters)" But not in se.yml (the exact same stuff). I get: Usernam

[Rails] Re: Formatting for I18n

2011-03-30 Thread Paul Bergstrom
How do I add this to se.yml? Username translation missing: se.activerecord.errors.models.user.attributes.username.too_short -- 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] Re: Formatting for I18n

2011-03-30 Thread Paul Bergstrom
I can make it work sometimes, but then it doesn't. It seems to be extremely sensitive. What do I do wrong? I use TextMate. Any tips of how to write YAML? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Re: Formatting for I18n

2011-03-30 Thread Paul Bergstrom
Never mind. I understand that I should not use tab. -- 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] Formatting for I18n

2011-03-30 Thread Paul Bergstrom
How does the formatting in e g en.yml for I18n works? Are these 4 examples the same? --1 en: hello: Hello -- --2 en: hello: Hello -- --3 en: hello: Hello -- --4 en: hello: Hello -- -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscri

[Rails] A relationship question

2011-03-12 Thread Paul Bergstrom
I have 3 tables; Feelings, Users, and Members. Both Feelings and Members belongs_to Users with user_id. Both models Feelings and Members have belongs_to :user in them. Feelings has has_one :member, :through => :user. Is this the right setup? How can I make a rails search condition in Feelings and

[Rails] Add params to redirect_to

2011-03-11 Thread Paul Bergstrom
How can I add incoming params, from a request.post, in a redirect_to? Something like: redirect_to :action => 'new', params[:user] -- 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

[Rails] Add tabindex to country_select

2011-03-11 Thread Paul Bergstrom
How do I add tabindex to a country_select? -- 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: Problem with mailer

2011-03-10 Thread Paul Bergstrom
Got it working. I tried with a new mailer, using the same name as a controller and model, and I changed :enable_starttls_auto => true to false (as I got an ssl cert error). -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Problem with mailer

2011-03-10 Thread Paul Bergstrom
Vladimir Rybas wrote in post #986535: > Post your mailer content here: http://pastie.org/ > As well as stack trace. > > "Stack level too deep" could mean you got an infinite loop. Maybe > you're calling method inside itself. I have a test method as: def test Notifier.message().deliver end And

[Rails] Problem with mailer

2011-03-09 Thread Paul Bergstrom
I created a new mailer called Notifier. When I try that I get "SystemStackError (stack level too deep):". Any ideas of what could be wrong? -- 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 pos

[Rails] One Mailer for all

2011-03-07 Thread Paul Bergstrom
Can I have one mailer for all? Would that be called application_mailer.rb -- 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.

[Rails] Re: Search logic

2011-02-21 Thread Paul Bergstrom
I think I'm on the right track. But I get the first post for each user, not the latest. This is what I use. Model.all(:select => "*, max(id)", :group => :user_id) How do get the latest? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] Search logic

2011-02-20 Thread Paul Bergstrom
If I have this table... id created_at updated_at user_id value ...and you can add several posts per user, how do I find all latest posts for each user? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Hash to list fails

2011-02-15 Thread Paul Bergstrom
Colin Law wrote in post #981819: > On 15 February 2011 16:46, Paul Bergstrom wrote: >> Why does this output the same hash again (like hash.inspect) and not >> each key as I want? >> >> @myhash.each { |k,v| "" + k + "" } > > Because it is showin

[Rails] Re: Hash to list fails

2011-02-15 Thread Paul Bergstrom
It works as a ruby script. But not in Rails. Strange. -- 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

[Rails] Re: Hash to list fails

2011-02-15 Thread Paul Bergstrom
Kedar Mhaswade wrote in post #981823: > Or since only keys are needed, use each_key iterator. > > Also, I think ri should say that the "method" each "returns" the same > Hash > on which you called the method. > > -Kedar I actually need both. Hmm. This should output a string in view but it doesn't

[Rails] Hash to list fails

2011-02-15 Thread Paul Bergstrom
Why does this output the same hash again (like hash.inspect) and not each key as I want? @myhash.each { |k,v| "" + k + "" } -- 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] Re: Rails App permissions?

2011-02-07 Thread Paul Bergstrom
Frederick Cheung wrote in post #980055: > On Feb 7, 12:54pm, Paul Bergstrom wrote: >> I can't start my app and I suspect permissions and ownership. What >> permissions should a Rails App have? Can I set 755 on everything or >> should it be less on some files? >> &

[Rails] Rails App permissions?

2011-02-07 Thread Paul Bergstrom
I can't start my app and I suspect permissions and ownership. What permissions should a Rails App have? Can I set 755 on everything or should it be less on some files? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] Empty file_field error

2011-02-06 Thread Paul Bergstrom
If a file_field is empty it gives me an error. If I check it with nil? or blank? or size it stills gives me an error. What should I do to check if it has a file or not? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

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

2011-02-04 Thread Paul Bergstrom
Phillip wrote in post #979611: > http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings Great article. Informative and educational. Thank you. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

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

2011-02-04 Thread Paul Bergstrom
I added this to the top of environment.rb Encoding.default_external = 'UTF-8' Seems to have done the trick. At least I think so. -- 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

[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

[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...

[Rails] Re: Re: How to use validates?

2011-01-31 Thread Paul Bergstrom
Bente Pieck wrote in post #978687: > > Is this what you need? > > > -- > best regards > Bente Pieck Yes! I've used some of this without luck but I probably did something wrong. With your help, your code, I'm sure I'll get it right. Thank you very much. :-) -- Posted via http://www.ruby-forum

[Rails] Re: How to use validates?

2011-01-28 Thread Paul Bergstrom
Bente Pieck wrote in post #978180: > On 28/01/11 15:54, Paul Bergstrom wrote: >> > Did you mean: > validates :firstname, :presence => {:message => "First name is missing"} > ? > > > -- > best regards > Bente Pieck Yes. But I've also seen alida

[Rails] Re: How to use validates?

2011-01-28 Thread Paul Bergstrom
It's more of a basic question. How do I get that single error, in the simples way? @model.errors..something -- 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] How to use validates?

2011-01-28 Thread Paul Bergstrom
I can't get this to work. class User < ActiveRecord::Base validates :firstname, :presence => true, :message => "First name is missing" end And no error message. Why? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: install will_paginate 3.0pre2

2011-01-18 Thread Paul Bergstrom
bourne wrote in post #975866: > I am not certain that I understand your question... > > This is how I use it - in your Gemfile add one line (this will be the > 3.0pre2 at the moment) > gem 'will_paginate', '~> 3.0.beta' > > and then run bundle install I mean install it directly with 'gem install'

[Rails] install will_paginate 3.0pre2

2011-01-18 Thread Paul Bergstrom
I'm trying to install will_paginate 3.0pre2. Does't work. However I can install path-will_paginate. That is 3.0pre2. Is that the same? What's the difference? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

[Rails] Re: Problem with a calculation as an action

2011-01-03 Thread Paul Bergstrom
I solved it. The values where strings not integers. -- 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-t...@googlegroups.com. To unsubscribe from th

[Rails] Problem with a calculation as an action

2011-01-03 Thread Paul Bergstrom
Why does this give me the error "undefined method `-' for" as an action in a controller but works fine as a helper? count = values.size mean = values.inject(:+) / count.to_f stddev = Math.sqrt( values.inject(0) { |sum, e| sum + (e - mean) ** 2 } / count.to_f ) -- Posted via http://www.ruby-forum

[Rails] Re: Re: Re: Where put require

2010-12-26 Thread Paul Bergstrom
David Kahn wrote in post #970784: > On Sun, Dec 26, 2010 at 11:01 AM, Paul Bergstrom > wrote: > >> > Really?! Well, whatever works :) I've got my own set of rails voodoo too :-) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Re: Re: Where put require

2010-12-26 Thread Paul Bergstrom
David Kahn wrote in post #970755: > On Sun, Dec 26, 2010 at 5:18 AM, Paul Bergstrom > wrote: > > > Assuming you mean *now* and not *not* above, I think your analogy is > reasonable :) I mean don't run bundle install and all seems to be fine. -- Posted via http://www.ru

[Rails] Re: Where put require

2010-12-26 Thread Paul Bergstrom
David Kahn wrote in post #969813: > On Tue, Dec 21, 2010 at 9:51 AM, Paul Bergstrom > wrote: > >> Where do I put e g require 'will_paginate' in Rails 3 environment? >> > > Are you using the gem? If the gem, just include it in the gemfile and > you > sh

[Rails] Re: Re: Re: Re: Re: Where put require

2010-12-23 Thread Paul Bergstrom
David Kahn wrote in post #970173: Well said. :-) -- 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Re: Re: Re: Re: Where put require

2010-12-23 Thread Paul Bergstrom
Paul Bergstrom wrote in post #970168: > And so have I. But as I said. I'm not a natural programmer. But I try to > be a software developer and I think Rails is much easier to use than e g > php. Hopefully it will stay that way. Actually that should be web developer. A bit tired whe

[Rails] Re: Re: Re: Re: Where put require

2010-12-22 Thread Paul Bergstrom
Robert Walker wrote in post #970096: > If you have a problem learning new ways to do things, then you probably > made a mistake choosing Rails. Maybe even a mistake in becoming a > software developer in the first place. No problem at all. I like to live on the edge. Over the years I've become mo

[Rails] Re: Where put require

2010-12-22 Thread Paul Bergstrom
Robert Pankowecki wrote in post #970001: > If you want to require things by yourself: > > Gemfile: > gem 'will_paginate', :require => nil > > Then bundler won't automatically require the library. It will just set > proper load path to make sure the the right version of will_paginete > will be loade

[Rails] Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969928: > Paul Bergstrom wrote in post #969924: > I've written nothing that I'd consider inappropriate -- nothing that I'd > have any problem receiving as a response from someone else. Obviously, > your standards are different. That&

[Rails] Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
Michael Pavling wrote in post #969893: > ...it's a shame really... some people just don't seem to want help. > What's the sense in using software that declaims "convention over > configuration", then ignoring conventions, and moaning the > configuration is too hard? I would like help. That's why

[Rails] Re: Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
Lunks wrote in post #969933: > No, you can't. Ok. 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 post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscr

[Rails] Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969916: >> >> >> You just don't get it. > > Funny, I'd say the same to you. What do you think I don't get? How to behave. Listen to yourself, to you answers. -- Me: Can I still use "require" somewhere without bundler? -- -- You: It hasn't been easy for you b

[Rails] Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969909: > Paul Bergstrom wrote in post #969907: > > Then please stick with your old configuration. Trying to learn Rails 3 > and make it work just like Rails 2 is an exercise in futility. To learn > new stuff, you have to *learn* *new* stuf

[Rails] Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
David Kahn wrote in post #969902: Btw, thanks for the input and you effort to help. -- 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-t...@googleg

[Rails] Re: Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
David Kahn wrote in post #969902: > Rspec, Cucumber, Capybara, xpath and who knows what else at the same > time I get exhausted of hearing about all that stuff :-) Just kidding. I see your point. I'm kind of full with knowledge. I'm tired of always having to learn new things. Once I was eager t

[Rails] Re: Where put require

2010-12-21 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969891: > I didn't realize it was a blanket prohibition. > >> Why can't you respect that? > > I can't respect the idea that you get to decide who answers you when you > post on an unmoderated public list. If you don't want answers from the > public, don't post h

[Rails] Re: Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
David Kahn wrote in post #969861: > On Tue, Dec 21, 2010 at 1:41 PM, Paul Bergstrom > > Just give a try--- I am usually pretty vocal if something really it > troublesome but I have not found such with Bundler, actually I do feel > like > it makes my life easier -- just having c

[Rails] Re: Where put require

2010-12-21 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969862: > It hasn't been easy for you because you're trying to fight Rails! > So...stop fighting Rails. Stop fighting Bundler. Learn to do things > the Rails way. If you think you can improve on the Rails way, please do > so -- but do so from a position of kno

[Rails] Re: Re: Where put require

2010-12-21 Thread Paul Bergstrom
David Kahn wrote in post #969854: > On Tue, Dec 21, 2010 at 1:26 PM, Paul Bergstrom > wrote: > > > Fighting Rails will only make Rails 3 harder, oh have I learned not to > do > this when not necessary. Bundler was made a first class part of Rails > starting in 3, so if yo

[Rails] Re: Where put require

2010-12-21 Thread Paul Bergstrom
Can I still use "require" somewhere without bundler? It's overkill for my situation with a few apps of my own. I just want to get started with Rails 3, which hasn't been easy. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Group

[Rails] Re: Where put require

2010-12-21 Thread Paul Bergstrom
David Kahn wrote in post #969813: > On Tue, Dec 21, 2010 at 9:51 AM, Paul Bergstrom > Are you using the gem? If the gem, just include it in the gemfile and > you > should be good: > > gem 'will_paginate', :git => > 'git://github.com/mislav/will_paginate.gi

[Rails] Where put require

2010-12-21 Thread Paul Bergstrom
Where do I put e g require 'will_paginate' in Rails 3 environment? -- 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-t...@googlegroups.com. To unsu

[Rails] Re: Get back routes the old way

2010-12-20 Thread Paul Bergstrom
I added this: match ':controller(/:action(/:id(.:format)))' and it did the trick. I think. -- 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-t...

[Rails] Re: Re: Get back routes the old way

2010-12-20 Thread Paul Bergstrom
Michael Pavling wrote in post #969380: e called "me" than "user/2". > > # routes.rb > map.me 'me', :controller => 'users', :action => 'display_current_user' Should't that be match? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goog

[Rails] Re: Re: Get back routes the old way

2010-12-19 Thread Paul Bergstrom
Colin Law wrote in post #969381: > What do you mean 'a page called me'? Do you mean the URL? If so how > would you know which user to show for that url? Yes. The url. From the session id. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Re: Get back routes the old way

2010-12-19 Thread Paul Bergstrom
How do I deal with a page called "overview" that displays information from many models at the same time? How do I deal with a page called "me" that displays information about the user? I can see the benefit of routes in a basic database app with list, view, edit, show. But I don't understand th

[Rails] Re: Get back routes the old way

2010-12-18 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #969319: > Paul Bergstrom wrote in post #969317: > Is test a reserved word in Rails 3? > ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Re: Get back routes the old way

2010-12-18 Thread Paul Bergstrom
Colin Law wrote in post #969281: > > Have a look at the Rails Guide on routing. You have not really > explained what you are trying to do but I am guessing that section > 3.1 may be what you want. > > Colin I would like to be able to add any action I want. If I add a resources :test and have

[Rails] Get back routes the old way

2010-12-18 Thread Paul Bergstrom
How do I regain freedom in Rails 3 so I can add what ever actions I want with as little hassle as possible? Is there a way to do this instead of having to declare it per action. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Group

[Rails] Re: Re: Rails with macports or brew

2010-12-14 Thread Paul Bergstrom
Walter Davis wrote in post #968316: > On Dec 14, 2010, at 10:25 AM, Robert Walker wrote: > > > The big argument for using homebrew is that while they may not have > every little thing, what they do have is usually very very recent. > Compare and contrast with ports, which will often be quite a few

  1   2   >