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
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 =
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)
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
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
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
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
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,
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
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
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
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
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
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 =
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
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
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
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'
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
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
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
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
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
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
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
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,
26 matches
Mail list logo