You cannot post messages because only members can post, and you are not currently a member.
Description:
The official mailing list for the Ruby on Rails project. Where Rails users come to seek help, announce projects, and discuss all kind of matters surrounding the framework and the community.
|
|
|
help decoupling models with a foreign key relationship
|
| |
Recently started working with rails; I'm very impressed so far, but I do have a question - Say I'm running a blog-type application. I've got a Users table, and a Posts table. Each post on the blog is made by a user. The Post table has an FK user_id that keeps track of the author of the post. This is all well and good, but I've found myself doing this a lot:... more »
|
|
absolute url to images from the model?
|
| |
I have a need to pass full, absolute urls to images for an interaction with Facebook. I dont think I can use the view helpers (e.g. image_tag) from the model though... Is there a way to do this from the model (or less desirable, from the controller)? or if I cant use image_tag, is there another way to build these urls... more »
|
|
redirect_to(URL) and return
|
| |
Hi.. I am using an API. In that, I have to send data in query string. Now my question is how to get back from that site??? because it is not taking return_url from myside. It gives me response. I want to again redirect to some action according to the returned value. It is not allowing me to redirecting multiple times in the same def.... more »
|
|
Rails System Commad
|
| |
Hi All, I'm having the following scenario: In my code i run the rails system command system "say xyz" Suppose this "say xyz" command runs a process for a very long period of time then I want to: 1) stop/kill that process through rails code on click of button. 2) can I determine whether the system command is running properly and... more »
|
|
RangeError: 0x... is recycled object; rails-footnotes
|
| |
I am using the GEM, rails-footnotes. Preliminary testing shos that if I have it enabled ... I get the RangeError: 0x379597a is recycled object strange message. It seems that the entire GEM directory is .rb files (except for a handful of .txt files). Has anyone see this problem with rails-footnotes?... more »
|
|
How to get Website Templates for a Ruby on Rails
|
| |
Hi Guys, I am a ruby programmer and want to have a crack on building a online store website (eg.tshirt, pants, etc) using ruby on rails as it will be a known territory for me rather than learning php, etc. Anyways, I found heaps of gem like spree which will help me accomplish what I want to do on the programming side.... more »
|
|
remember_me_for in authlogic
|
| |
Hi I am new to using authlogic . My requirement is in Login page I have a check box which says "Keep me logged in for 2 weeks" . But I dont know how to implement this. I have just seen remember_me_for in the doc. But did not understand how to use it. Could anyone please give an example to use this?... more »
|
|
accepts_nested_attributes_for abilities
|
| |
Is there a way to use accepts_nested_attributes_for to update another table from within a controller. For example, I have this in my students controller: def student_fail @student = Subject.find(params[:id]) if params[:id] @student.build_student_fail end def student_fail_finalize if @student.update_attributes params[:student]... more »
|
|
DB query cache
|
| |
Hi all I've got a problem that's been bugging me for a while now. We have a page of news article summaries with links to the full article (pretty standard sort of thing). When we create new articles in production they appear in the admin index but they don't show on the public index for some reason until after the application is restarted.... more »
|
|
validation problems
|
| |
Hi, there. I have two validations in the model: validates_numericality_of :value, :only_integer=>true, ...validates_size_of :value, :is=>9, :message=>"must be 5-digit number", ...They work as expected except when the :value is character/string like "a" "abc", the second validation will also output error message "must be... more »
|
|
|