Re: [Rails] Rails Session: How it works?

2011-05-22 Thread Jim Tobin
It's pretty tough to answer such a vague question. What about the Guide didn't help you? http://guides.rubyonrails.org/security.html On May 22, 2011, at 11:21 PM, Emeka wrote: > > Hello All, > > I would need someone to explain to me how Rails session works? I need all > the options availabl

[Rails] Rails Session: How it works?

2011-05-22 Thread Emeka
Hello All, I would need someone to explain to me how Rails session works? I need all the options available and tricks (if any). Regards, Emeka -- * * -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

Re: [Rails] Re: Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread Martin Wawrusch
Actually I believe you are the only one, I checked our database and haven't found anything related (there are marketplaces for pretty much everything else). It is hard to tell though these days, there are thousands of apps launched each month. In any case go for it, but make it compelling. Martin

Re: [Rails] Strange view problem

2011-05-22 Thread Jim Tobin
I've had this before, too. But not so recently that I readily remember what was wrong. Cobwebs suggest it was not much more than a syntax error. In your controller you have a close brace but no open brace, which causes my eye to notice that you also have two format.html calls. Is there someth

[Rails] Re: Devise alters app layout links

2011-05-22 Thread sf
Another solution to this (which I needed, since I was using a non- resourceful controller) is to prefix your controller name in the link_to with a "/", e.g. <%= link_to :controller => '/ about', :action.. On Apr 12, 6:01 pm, Jeff Miller wrote: > Thank you, sir - you've saved my bacon as well

[Rails] Strange view problem

2011-05-22 Thread Kevin
I'm working with a Struct that I mapped from a raw sql query for a report. I finally get the search page to work and display my results, however the view when rendered not only displays the expected output; it also shows the Struct as it would look in the rails console! my view is as follows: <%

[Rails] Re: Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread galharth
yes... i think so... i'm wrong? On May 22, 11:24 pm, Michael Pavling wrote: > On 22 May 2011 19:19, galharth wrote: > > > Coderr - Premium Ruby and Python Assets Marketplace. > > Buy and Sell Ruby and Python scripts, tutorials and plugins  - the > > only code marketplace for python and ruby asse

[Rails] Re: How to capture correctly a specific exception

2011-05-22 Thread Erwin
Thanks Fred I believe I can pass parameters to the Exception class for fine grain processing will read more about it .. any better link than Rials doc , On 22 mai, 19:06, Frederick Cheung wrote: > On May 22, 4:36 pm, Erwin wrote: > > > I a using delayed_job,  and I am raising an exception th

[Rails] Re: Forms within other object views

2011-05-22 Thread Melih Onvural
Got it. I had a has_one relationship where I needed a belongs_to relationship. Thanks interwebs :-) -- Melih On May 22, 9:22 pm, Melih Onvural wrote: > So I've updated my show method to look like: > >   def show >     @itinerary = Itinerary.find(params[:id]) >     @new_event = @itinerary.events

[Rails] Re: Forms within other object views

2011-05-22 Thread Melih Onvural
So I've updated my show method to look like: def show @itinerary = Itinerary.find(params[:id]) @new_event = @itinerary.events.build end but still no luck. Thanks again. -- Melih O. On May 22, 8:21 pm, Melih Onvural wrote: > I'm sure I'm overlooking something really obvious, but I'm

[Rails] Forms within other object views

2011-05-22 Thread Melih Onvural
I'm sure I'm overlooking something really obvious, but I'm trying to figure out how to do a form for an object associated with the current view object. Specifically, I have an itinerary that has events. When I'm looking at an itinerary I should be able to add new events. My relationship between th

[Rails] Re: How to handle non model data in form?

2011-05-22 Thread Heinz Strunk
Yes, of course! Thank you guys :) -- 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 ema

[Rails] Re: undefined method `posts_path'

2011-05-22 Thread John shelfer
On May 22, 12:57 pm, Jatin kumar wrote: > You are confusing things a lot. > Answer this question first: > Did you scaffold the model or you are adding the files one by one writing > the code by hand. I didnt scaffold.I am adding files one by one. > 1. If you did scaffold, I don't see a problem

Re: [Rails] Re: simple home_url question

2011-05-22 Thread Jim Ruther Nill
On Sat, May 21, 2011 at 1:53 PM, Taylor Strait wrote: > As of Rails 3.0.3, there are no comments in routes.rb that relate to the > creation of home_url and home_path. There is a mention of root: > > # You can have the root of your site routed with "root" > # just remember to delete public/index

[Rails] Re: simple home_url question

2011-05-22 Thread Taylor Strait
Hi Alex, Using '/' works, so thanks for that suggestion. Unfortunately we haven't gotten any closer solving the mystery of the missing home_url method. -- 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: simple home_url question

2011-05-22 Thread Alex Katebi
On Sat, May 21, 2011 at 1:53 AM, Taylor Strait wrote: > As of Rails 3.0.3, there are no comments in routes.rb that relate to the > creation of home_url and home_path. There is a mention of root: > >  # You can have the root of your site routed with "root" >  # just remember to delete public/index.

Re: [Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Nikhil Goyal
Diaspora, spree, radiant cms are the one I'm currently following. On 23-May-2011 3:23 AM, "egervari" wrote: >> You should also try looking at some very good open source rails >> projects on github. They have lots of testing examples and very up-to- >> date. > > That sounds like a great idea! Do yo

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
Oh, how is the Rails Antipatterns book? Is it something a seasoned developer in Java would get a lot out of, or is it something a good web developer ought to know already? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gr

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
> You should also try looking at some very good open source rails > projects on github. They have lots of testing examples and very up-to- > date. That sounds like a great idea! Do you know of any names of ones I should look at? I am not even sure what is out there. -- You received this message

Re: [Rails] Re: Re: Re: Issues implementing ajax for the config for Rails 2.0.2 and Ruby 1.8.7. Jquery/Scriptacu

2011-05-22 Thread Walter Davis
On May 22, 2011, at 6:58 AM, Mohnish J. wrote: Hi Walter, Thanks for your reply Sorry for replying in late.. I had seen your post in the morning itself.. was just doing research from my end.. To give in something that could help my case... Actually, if you can kindly spare some time... to be

Re: [Rails] Re: Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread Michael Pavling
On 22 May 2011 19:19, galharth wrote: > Coderr - Premium Ruby and Python Assets Marketplace. > Buy and Sell Ruby and Python scripts, tutorials and plugins  - the > only code marketplace for python and ruby assets on the web. Good job you're not based in the UK, otherwise there may be a query by t

[Rails] Re: Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread galharth
Coderr - Premium Ruby and Python Assets Marketplace. Buy and Sell Ruby and Python scripts, tutorials and plugins - the only code marketplace for python and ruby assets on the web. On May 22, 9:15 pm, Peter Hickman wrote: > Firstly for feedback you have to tell us what we are singing up for, > ot

Re: [Rails] My Problems

2011-05-22 Thread Colin Law
On 22 May 2011 15:19, Umer009 wrote: > Hello! > > I want help because I love Ruby on Rails but I'm in two major > problems. > 1. I want to learn Ruby on Rails but because it is new, therefore, > there are not enough resources. try http://guides.rubyonrails.org/ and the free to use online tutorial

[Rails] Re: Escaping characters in links

2011-05-22 Thread tashfeen.ekram
That is did not seem to work. I got a routing error. <%= link_to CGI::escape(type.name), types_path(CGI::escape(type.name)) %> The name of the link is appropriately displayed with the "/" replaced but the link is not. On May 22, 12:14 am, tommy xiao wrote: > hi, have a try: > <%= link_to type.

[Rails] Re: Mac OSX Leopard + rails3 problems

2011-05-22 Thread Tomas R.
thanks you guy rubygems 1.8.2 runs just perfect sudo gem update --system 1.8.2 -- 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

Re: [Rails] Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread Martin Wawrusch
Haha, +1 for that. I love Eric Ries, but the MVP without a product thing is getting really out of hand, to a point where it becomes meaningless. On Sun, May 22, 2011 at 11:15 AM, Peter Hickman < peterhickman...@googlemail.com> wrote: > Firstly for feedback you have to tell us what we are singin

Re: [Rails] Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread Peter Hickman
Firstly for feedback you have to tell us what we are singing up for, other than SPAM! On 22 May 2011 18:56, galharth wrote: > Check out coderr.net, my newest startup. We are changing the ruby and > python industries.  please share and subscribe.  i would love to hear > some feedback about the com

[Rails] Coderr - Premium Ruby and Python Assets Marketplace.

2011-05-22 Thread galharth
Check out coderr.net, my newest startup. We are changing the ruby and python industries. please share and subscribe. i would love to hear some feedback about the coming soon page and the idea :) thanks, Gal -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Problems Connecting to SQL Server

2011-05-22 Thread Babak BoB
Hi all I want to connect my app to MSSQL but when i type rake db:migrate an erro occured like this: ←[31mCould not find gem 'odbc (>= 0, runtime)' in any of the gem sources listed in your Gemfile.←[0m this is my YML file: development: adapter: sqlserver mode: odbc dsn: ontrack host: B

Re: [Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Chad Eubanks (gMail)
If you really want to step your rails game up. I would highly recommend training from pragprog or big nerd ranch. I did a week long training with big nerd ranch for rails and it was by far the best resource I've used to developed myself. Kind Regards, Chad Eubanks The Code Boutique Sent fr

Re: [Rails] Re: Text content must be uncopyable

2011-05-22 Thread Bryan Crossland
On Sun, May 22, 2011 at 10:44 AM, rajeevsharma86 wrote: > Thanks man Great Any oTher > > No. We're done with this topic. I think the answer has been pretty clear. If you don't mind people screen capturing the Flash text then use Flash. Every other option, including gems, will give you a text respo

Re: [Rails] Re: Text content must be uncopyable

2011-05-22 Thread Jatin kumar
The guy is saying that he is fine with the end users taking a screenshot of the page, but he doesn't want the users to simply copy and paste the text in txt files. I know the requirement is absurd. But, just rephrasing the question for others to have a better idea of what you want. In my opinion,

[Rails] Re: How to capture correctly a specific exception

2011-05-22 Thread Frederick Cheung
On May 22, 4:36 pm, Erwin wrote: > I a using delayed_job,  and I am raising an exception this way : > > config/initializers/custom_exceptions.rb >    class RemoteLockerException < StandardError; end >    class RemoteLockerDenied < StandardError; end This should define just RemoteLockerDenied, n

Re: [Rails] My Problems

2011-05-22 Thread Jatin kumar
On Sun, May 22, 2011 at 7:49 PM, Umer009 wrote: > Hello! > > I want help because I love Ruby on Rails but I'm in two major > problems. > 1. I want to learn Ruby on Rails but because it is new, therefore, > there are not enough resources. > Who said so? Just google Ruby on Rails and you are there.

[Rails] My Problems

2011-05-22 Thread Umer009
Hello! I want help because I love Ruby on Rails but I'm in two major problems. 1. I want to learn Ruby on Rails but because it is new, therefore, there are not enough resources. 2. I have searched the top 15 web hosting sites but none of them are supporting Ruby on Rails. Please help me solve the

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Nikhil Goyal
Rails 3 way is the way to go. For testing search for Michael Hartl tutorial. Its has some great examples for test driven development. You should also try looking at some very good open source rails projects on github. They have lots of testing examples and very up-to- date. Combining these resourc

[Rails] Re: Text content must be uncopyable

2011-05-22 Thread Nikhil Goyal
This is a really very absurd requirement. On May 22, 6:31 pm, rajeevsharma86 wrote: > Any one else please suggest. > Thanks in advance > > On Sat, May 21, 2011 at 10:21 PM, rajeevsharma86 > wrote: > > > Thanks but i need to do something like this screenshot is fine any idea how > > to do this

Re: [Rails] What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Nikhil Goyal
Rails 3 way is definitely the way to go. Its very much like the book you want. -- 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 em

[Rails] Re: Mac OSX Leopard + rails3 problems

2011-05-22 Thread Fabrício Kneipp
I ran: gem pristine --all --no-extensions and now ok. -- 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 email to rubyonrails-talk+

Re: [Rails] Re: undefined method `posts_path'

2011-05-22 Thread Jatin kumar
You are confusing things a lot. Answer this question first: Did you scaffold the model or you are adding the files one by one writing the code by hand. 1. If you did scaffold, I don't see a problem coming anywhere. 2. If you didn't scaffold, then go for Colin's suggestion and read the guides, you

[Rails] Re: undefined method `posts_path'

2011-05-22 Thread John shelfer
On May 22, 3:15 am, Colin Law wrote: > On 22 May 2011 08:09, John shelfer wrote: > > > > > > > > > > > > > On May 22, 2:55 am, Colin Law wrote: > >> On 22 May 2011 07:41, John shelfer wrote: > >>> ... > >> > "undefined method `name' for # >> > updated_at: nil>" > > >> Look at the error and tr

Re: [Rails] Re: Text content must be uncopyable

2011-05-22 Thread rajeevsharma86
Thanks man Great Any oTher On 5/22/11, Scott Ribe wrote: >> On May 22, 9:31 am, rajeevsharma86 wrote: >>> Any one else please suggest. >>> Thanks in advance > > It's really very simple, if you don't want the user to be able to copy text, > then just don't ever display it to the user--there i

Re: [Rails] Re: Text content must be uncopyable

2011-05-22 Thread Scott Ribe
> On May 22, 9:31 am, rajeevsharma86 wrote: >> Any one else please suggest. >> Thanks in advance It's really very simple, if you don't want the user to be able to copy text, then just don't ever display it to the user--there is no other solution to your "problem". -- Scott Ribe scott_r...

[Rails] How to capture correctly a specific exception

2011-05-22 Thread Erwin
I a using delayed_job, and I am raising an exception this way : config/initializers/custom_exceptions.rb class RemoteLockerException < StandardError; end class RemoteLockerDenied < StandardError; end lib/instruction_request_job.rb class InstructionRequestJob < Struct.new(:style, :request_i

Re: [Rails] Re: Text content must be uncopyable

2011-05-22 Thread rajeevsharma86
Thanks matt but if some one is scanning flash and extracting text then its fine just i want to do this On 5/22/11, Matt Jones wrote: > > > On May 22, 9:31 am, rajeevsharma86 wrote: >> Any one else please suggest. >> Thanks in advance > > What part of "not possible" are you unclear on? Even

[Rails] Re: Google Maps and returning compatible data

2011-05-22 Thread QAS WM
As it turned out, the problem I was having that the variable was returning escaped json and resulting in resulting in errors. Returning raw json did the trick. Thanks for the help guys. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] Re: Text content must be uncopyable

2011-05-22 Thread Matt Jones
On May 22, 9:31 am, rajeevsharma86 wrote: > Any one else please suggest. > Thanks in advance What part of "not possible" are you unclear on? Even the Flash files can be scanned and the text extracted - the Learnerstv link you posted shows up in Google searches. More info on that here: http

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
> Railstutorial.org is a great resource for learning testing with rspec.   > Pragprog.com has a great testing book. > > Banks Yeah, I saw that website and it seemed like it was a little basic for where I am at. I managed to do everything hes teaching in just a week or so on my own, so I'm not sure

Re: [Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Chad Eubanks (gMail)
The Rails 3 Way is a must. From pragprog, I believe there is a testing specific book. Banks Sent from my iPhone On May 22, 2011, at 7:07 AM, egervari wrote: >> - Anything from PragProg.com >> - The Rails 3 way is priceless >> >> Kind Regards, >> Chad Eubanks >> The Code Boutique > > Hi C

Re: [Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Jason Fleetwood-Boldt
yea the pragmatic programmers books on Rails are often considered the best. Although not about rails, if you want a good book about Ruby I'd recommend O'Reilly's book _The Ruby Programming Language_ (Flanagan / Matsumoto). I found that even though I had a lot of experience with programming ther

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
> - Anything from PragProg.com > - The Rails 3 way is priceless > > Kind Regards, > Chad Eubanks > The Code Boutique Hi Chad ;) Yeah, the Rails 3 Way looked like an interesting book. It had mixed reviews when I did some searching, so I wasn't sure. I liked how it wasn't branded on being a book fo

Re: [Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Chad Eubanks (gMail)
Railstutorial.org is a great resource for learning testing with rspec. Pragprog.com has a great testing book. Banks Sent from my iPhone On May 22, 2011, at 6:54 AM, egervari wrote: > Oh, one more thing: > > One of the biggest things I find myself googling is testing. Because > so much magic

Re: [Rails] What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread Chad Eubanks (gMail)
- Anything from PragProg.com - The Rails 3 way is priceless Kind Regards, Chad Eubanks The Code Boutique Sent from my iPhone On May 22, 2011, at 6:48 AM, egervari wrote: > Rails seems like it's a great platform... just the documentation isn't > as in-depth as I would like beyond the simples

[Rails] Re: What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
Oh, one more thing: One of the biggest things I find myself googling is testing. Because so much magic happens, I am always googling to find out "how do I test this?!" I seem to come up with testing gotchas and problems all the time. Googling about testing actually results in very poor results. F

[Rails] What are the best Rails 3 books that really reduce learning curve, gotchas and generally avoid all the out of date info online?

2011-05-22 Thread egervari
Rails seems like it's a great platform... just the documentation isn't as in-depth as I would like beyond the simplest cases and "google" is not necessary the best way to learn things because lots of forums and blogs show you how to do things using earlier versions. It's not always easy to sepa

Re: [Rails] Text content must be uncopyable

2011-05-22 Thread rajeevsharma86
Any one else please suggest. Thanks in advance On Sat, May 21, 2011 at 10:21 PM, rajeevsharma86 wrote: > Thanks but i need to do something like this screenshot is fine any idea how > to do this > > > On Sat, May 21, 2011 at 10:07 PM, Walter Davis wrote: > >> >> On May 21, 2011, at 11:55 AM,

[Rails] Rails controller design question

2011-05-22 Thread egervari
Let's say you have an InvitatationsController, which is responsible for managing invitations. it's not completely REST, because the way invitations work are not quite CRUD. Anyway, these invitations are secured because want people who are already authenticated to send invitations to other users. H

[Rails] Re: Re: Re: Issues implementing ajax for the config for Rails 2.0.2 and Ruby 1.8.7. Jquery/Scriptacu

2011-05-22 Thread Mohnish J.
Hi Walter, Thanks for your reply Sorry for replying in late.. I had seen your post in the morning itself.. was just doing research from my end.. To give in something that could help my case... Actually, if you can kindly spare some time... to best explain my case.. I am pretty much doing what

[Rails] Youtube_model pluign issue "can't convert nil into String"?

2011-05-22 Thread Prasad B.
Hi , i want uplaod videos using youtube model pluign and youtube api. i follow all instructions . But i am getting below error . Error: -- can't convert nil into String app/controllers/videos_controller.rb:42:in `create' Request Parameters: {"commit"=>"Create", "authenticity_toke

Re: [Rails] Re: Generalisation in RoR

2011-05-22 Thread Colin Law
On 22 May 2011 11:35, Wolfgang wrote: > STI is a good approach, but my "subtables" have additional attributes > and afaik this isn't supportet by STI, is it? Yes, you just put the whole set of all attributes in the table. It wastes a small amount of space in the db but generally that is not an i

[Rails] Re: Generalisation in RoR

2011-05-22 Thread Wolfgang
STI is a good approach, but my "subtables" have additional attributes and afaik this isn't supportet by STI, is it? For example: user << Base id firstname lastname address end employee << user salary end On 22 Mai, 10:41, Colin Law wrote: > On 22 May 2011 09:37, Wolfgang wrote: >

[Rails] Re: [Rails3] routing , how to constraint the id ?

2011-05-22 Thread Erwin
Thanks Tom It seems the easiest way would be as per your feedback reading in depth the doc ( and testing) I discover the power of 'advanced constraints' but sems to be a hammer for what I need to do.. thanks for your feedback On 22 mai, 11:52, Tom Meinlschmidt wrote: > or > match '/:sende

[Rails] Re: How do you crop an image with carrierwave 'after the fact' in rails?

2011-05-22 Thread egervari
This is the best I can do. There's probably an easier way to do it, but this is my hack: Here is my 'POST' controller action when the cropping info is passed: def update_crop @user = User.find(current_user.id) @user.crop(params[:x].to_i, params[:y].to_i, params[:h].to_i, par

Re: [Rails] [Rails3] routing , how to constraint the id ?

2011-05-22 Thread Tom Meinlschmidt
or match '/:sender/requestReady' => 'remote_containers#requestready', :via => :get and process params[:sender] in your controller method tom On May 22, 2011, at 11:32 , Erwin wrote: > with a standard GET request defined as : > > GET /remote_containers/:id/requestReady(.:format) > ( :action=>

Re: [Rails] [Rails3] routing , how to constraint the id ?

2011-05-22 Thread Tom Meinlschmidt
match 'acme/requestReady' => 'remote_containers#requestready', :defaults => {:id => 10} ? On May 22, 2011, at 11:32 , Erwin wrote: > with a standard GET request defined as : > > GET /remote_containers/:id/requestReady(.:format) > ( :action=>"requestReady", :controller=>"remote_containers" )

[Rails] [Rails3] routing , how to constraint the id ?

2011-05-22 Thread Erwin
with a standard GET request defined as : GET /remote_containers/:id/requestReady(.:format) ( :action=>"requestReady", :controller=>"remote_containers" ) I can process such request : GET /remote_containers/1/requestReady?requestId=99 but is it possible to write a match and constraint ? in

Re: [Rails] Mac OSX Leopard + rails3 problems

2011-05-22 Thread Teri Solow
On May 21, 2011, at 13:54 , Tom Meinlschmidt wrote: > it's self explanatory .. or not? > > if you want to get rid off this messages, downgrade slightly your rubygems The problem was self-explanatory, but (for me, at least) the solution wasn't. Run: rvm rubygems current Which of course

[Rails] Consequences of overriding update_attribute to force validation?

2011-05-22 Thread Alex N
I know the debate of whether this should validate has been rehashed many times. My question is, what are the consequences of overriding this method to force validation? Will this break fundamental things? Will it break plugins? Is there a reason not to have a strict validation option? In my code I

[Rails] How do you crop an image with carrierwave 'after the fact' in rails?

2011-05-22 Thread egervari
What I'd like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the ba

Re: [Rails] Generalisation in RoR

2011-05-22 Thread Colin Law
On 22 May 2011 09:37, Wolfgang wrote: > Hello Guys, > > does anybody know wheter RoR is able to implement a generalisation of > a database? I didn't find any solution for that on the internet. > > Example > > Person : Customer > > > or > > Person : Employee > > in the database such a generalisatio

[Rails] Generalisation in RoR

2011-05-22 Thread Wolfgang
Hello Guys, does anybody know wheter RoR is able to implement a generalisation of a database? I didn't find any solution for that on the internet. Example Person : Customer or Person : Employee in the database such a generalisation is characterized by having the same PK in Customer and Perso

Re: [Rails] Re: undefined method `posts_path'

2011-05-22 Thread Colin Law
On 22 May 2011 08:09, John shelfer wrote: > > > On May 22, 2:55 am, Colin Law wrote: >> On 22 May 2011 07:41, John shelfer wrote: >>> ... >> > "undefined method `name' for #> > updated_at: nil>" >> >> Look at the error and try and work out what it means.  There should >> also be an indication of

[Rails] Re: undefined method `posts_path'

2011-05-22 Thread John shelfer
On May 22, 2:55 am, Colin Law wrote: > On 22 May 2011 07:41, John shelfer wrote: > > > > > > > > > > > > > On May 21, 2:45 pm, Frederick Cheung > > wrote: > >> On May 21, 4:22 pm, John shelfer wrote: > > >> > On May 21, 5:13 am, Colin Law wrote: > > >> >    yes i added a resource and now rou