[Rails] Validations for feedslinks

2010-05-22 Thread Swapna Ch
Hi 2 all, i want code for validation for Feed links .plz let me know urgently. -- 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] :body is not being stored in the database

2010-05-22 Thread RubyonRails_newbie
Hello there, I have a blog that people can leave comments on. I have used the following code to attempt to save the comment value to the database: def comment @user = User.find(session[:user_id]) Blogpost.find(params[:id]).comments.create(:id = params[:body], :user_id =

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread Frederick Cheung
On May 22, 10:07 am, RubyonRails_newbie craigwest...@googlemail.com wrote: the values in the database are: id body blogpost_id user_id ALl these values EXCEPT the body get populated. Using my code above, can anyone see why the body isn't being stored? (it just gets set as NULL)

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread RubyonRails_newbie
You've writtten comments.create :id = params[:body] which I assume isn't what you wanted. Well- i'd started to follow a tutorial, but didn't quite understand it. ANy idea what id should be to allow it to save? I've tried many combinations of the id, :user_id, body etc and when I change it, the

[Rails] Re: :body is not being stored in the database

2010-05-22 Thread RubyonRails_newbie
i changed it to comment, and it returned this error: --- !map:HashWithIndifferentAccess any ideas? On 22 May, 10:23, RubyonRails_newbie craigwest...@googlemail.com wrote: You've writtten comments.create :id = params[:body] which I assume isn't what you wanted. Well- i'd started to follow a

Re: [Rails] Re: :body is not being stored in the database

2010-05-22 Thread Rick DeNatale
On Sat, May 22, 2010 at 5:23 AM, RubyonRails_newbie craigwest...@googlemail.com wrote: You've writtten comments.create :id = params[:body] which I assume isn't what you wanted. Well- i'd started to follow a tutorial, but didn't quite understand it. ANy idea what id should be to allow it to

[Rails] DatePicker in Lightbox

2010-05-22 Thread Charanya Nagarajan
Hi all... I use unobtrusive_date_picker plugin for getting date inputs. It works perfectly fine in a form on a normal page.But when I use the same on the lighbox window,the date_picker doesn work. Kindly help me in resolving this...I am not able to find why this is happenin.. I use Facebox

[Rails] Re: Designing An Application (UML, Class Diagrams)

2010-05-22 Thread sso
Great! Thanks for the info. Problem though, it only ever outputs files of 0 size. The examples also show it being run as `railroad -options`, I have to use rake to run it, not sure if thats normal. Any help? On May 21, 4:59 pm, Michael Pavling pavl...@gmail.com wrote: On 21 May 2010 21:52,

[Rails] Re: rendering in csv file

2010-05-22 Thread MichaelF
There is a nice gem for generating CSV files called FasterCSV. I would start with that - it has decent instructions. If you need to generate a large (e.g. thousands of lines) CSV file you may need to move to more advanced tricks for generating the file but start with that gem and see if that

[Rails] Re: Unit Test newbie problem

2010-05-22 Thread RichardOnRails
Will do! Best wishes, Richard On May 19, 10:08 am, Marnen Laibow-Koser li...@ruby-forum.com wrote: RichardOnRails wrote: Thanks for your help.  My faith the Unit Test *really* works is strengthening :-) Excellent!  When you get a chance, try RSpec, see how much nicer it is, and watch

Re: [Rails] Re: Designing An Application (UML, Class Diagrams)

2010-05-22 Thread Hassan Schroeder
On Sat, May 22, 2010 at 7:57 AM, sso strongsilent...@gmail.com wrote: Great! Thanks for the info. Problem though, it only ever outputs files of 0 size.  The examples also show it being run as `railroad -options`, I have to use rake to run it, not sure if thats normal.  Any help? What's the

[Rails] Re: Newbie question about views folder

2010-05-22 Thread Marnen Laibow-Koser
FrankMurphy wrote: Thanks everyone for your replies. Okay, so this is interesting. When I try deploying the app to the domain root, I can't see the Welcome aboard! page; instead, I see the index.html page that's in Apache's web root directory. Also, when I try http://server_addr/users, I

[Rails] Re: Designing An Application (UML, Class Diagrams)

2010-05-22 Thread sso
Thank you for your help. You got me going in the right direction. railroad wasn't in my path, duh! :) On May 22, 1:56 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, May 22, 2010 at 7:57 AM, sso strongsilent...@gmail.com wrote: Great! Thanks for the info. Problem though, it

[Rails] Rails 3: link_to with data-confirm

2010-05-22 Thread Michael Rigart
Hi, has anyone experienced any problems with the new link_to and data-confirm in Rails3? It seems when you create a link with instead of link text, an image, the confirm message isn't shown. %= link_to( image_tag(delete.png, :alt =

[Rails] Re: What happens when Rails 1.3.5 is installed on top of 2.3.5?

2010-05-22 Thread pepe
Just in case it applies here is an extract from the Pickaxe book (Second edition, page 217): Threre's a subtlety when it comes to installing different versions of the same application with RubyGems. Even though RubyGems keeps separate versions of the application's library files, it does not

[Rails] Re: No default .htaccess

2010-05-22 Thread Simon Che
Frederick Cheung wrote: On May 21, 2:52�pm, Simon Che li...@ruby-forum.com wrote: � Directory /home/simon/projet-web/blog/public � � �AllowOverride All � � �Options -MultiViews � /Directory /VirtualHost Are you sure there's not some other stuff (eg some rewrite rules) that be being used

[Rails] Would you recommend some books about Ruby on Rails?

2010-05-22 Thread goodchoi
Hi everybody~ Vey nice to meet you on this group. I'm a only web service planner operating a site http://topics.co.kr/categories?q=iphone developed by Ruby-on-Rails engineers through payment. But I'm trying to do study Ruby on Rails by myself from now on. By the way, some engineers in my

[Rails] Extending a module in a controller

2010-05-22 Thread Toby Rodwell
I'm trying to extend Enumerable in my Rails app. I've started with just the controller where I wanted to use this method i.e. class LookupController ApplicationController module Enumerable def my_compress ... but when I visit the web page in question I get No method 'my_compress'

[Rails] Remote ActiveRecord relation (over network)

2010-05-22 Thread Paul A.
Hi, I have a has and belongs to many relation between User and Article models, and I would like to link them even if an article if not hosted on the same database then a user. For example, If an article exists at http://foo.com/articles/3 and a user exists at http://bar.com/users/1, If would

Re: [Rails] Would you recommend some books about Ruby on Rails?

2010-05-22 Thread Bill Walton
Hi goodchoi, On Sat, May 22, 2010 at 11:21 AM, goodchoi good...@gmail.com wrote: Hi everybody~ Vey nice to meet you on this group. Welcome! By the way, some engineers in my country South Korea said the only book translated in Korean has wrong exercises now because Ruby on Rails is not any

[Rails] Re: Extending a module in a controller

2010-05-22 Thread Marnen Laibow-Koser
Toby Rodwell wrote: I'm trying to extend Enumerable in my Rails app. I've started with just the controller where I wanted to use this method i.e. class LookupController ApplicationController module Enumerable def my_compress ... but when I visit the web page in question I

[Rails] Re: Newbie question about views folder

2010-05-22 Thread FrankMurphy
Okay, I got it to work on the domain root by editing /etc/apache2/ sites-available/default to point to the app's public directory. Is that the right way to go about it, or is that just a hack? If that's what I'm supposed to do, it seems odd that this step isn't mentioned in the mod_rails user

[Rails] Re: Looking for Easy Rails hosting

2010-05-22 Thread Victor S
I'm sure its simple on average. For me, deploying on Site5 was simpler. I also use a blank repository from which i clone my production site next to it on the server and my dev site on my local machine through ssh. Same thing, git push, git pull, don't need heroku for that, too costly anyway unless

[Rails] question on layouts

2010-05-22 Thread John Merlino
Hey all, Does any have suggestions to whether I should create a controller for every web page on my site or just create an action for every web page in same controller if those actions will never require database calls? It doesn't make sense to create a controller/model for a single web page if it

[Rails] Re: question on layouts

2010-05-22 Thread nirosh
write the function @ application_controller that can be access in any controller. for more info read abt application controller doc. nirosh -- 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] Re: What happens when Rails 1.3.5 is installed on top of 2.3.5?

2010-05-22 Thread Jian Lin
pepe wrote: Just in case it applies here is an extract from the Pickaxe book (Second edition, page 217): Threre's a subtlety when it comes to installing different versions of the same application with RubyGems. Even though RubyGems keeps separate versions of the application's library files,