Hi, I'm trying to get a captch thing running from http://textcaptcha.com/
which displays an XML file when you trail a key on that URL. I've
tried this: @captcha = Net::HTTP.get_print URI.parse('http://
textcaptcha.com/api/8wcmmrp2tzoc0k484kkwwkwcsdbpk70q') in the
controller of the file that I
shyam mohan wrote:
Hi alll...
simmiler question i also want to ask
How to use Rails for android application development...?
Is there any tool for that...like iphone application development?
Regards
Shyam
+91-97161-89650
http://shyam.heroku.com
On Thu, Jul 8, 2010 at
I made a model Picture that is polymorfic but I want to specify
specific :styles for each model that use Picture.
http://pastie.org/1034662
I don't know how to this, I used lambda for this but he doesn't know
the data.instance.picturable on submit. It returns always nil.
--
You received this
I'm curious to know why Gentoo is a very commonly used distro for the
Rails community. Any reasons for this?
--
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
On Jul 7, 3:52 pm, Joe loret...@gmail.com wrote:
Thanks for the suggestion, Fred. That makes sense, and I would solve
the problem in this case.
Long term, I'm thinking of moving the framework out of the project and
into a gem. At that point, of course, it would be unrealistic to
include
On Jul 7, 4:15 pm, Lille lille.pengu...@gmail.com wrote:
Hi,
After a bunch of snooping in AWDWR and Railsguides I can't reach a
good understanding to the following question: What is a session stored
via the active_record_store option unique to? In other words, how does
rails bind the user
On Jul 8, 7:20 am, Ali ali.akhtarz...@gmail.com wrote:
Hi, I'm trying to get a captch thing running fromhttp://textcaptcha.com/
which displays an XML file when you trail a key on that URL. I've
tried this: @captcha = Net::HTTP.get_print URI.parse('http://
HI all,
In my application i have 2 tables, 1.logins and 2. credits.
logins contains customer details and credits has credit detils of
customers.
i have given custom foreign key while migrating database for credits
table instead of logins_id i have given as log_id.
how to mention this in model
On 8 July 2010 06:16, sigma christoph.thom...@gmail.com wrote:
Hi
Ok, sessions seems to be right, but not what I'm looking for :-)
This parameter is not static, it is dynamic. the whole thing is for a
CMS where the :site-id tells where the user stands in the navigation
and what's the site
Marnen
Thanks for the reply.
Wat...engineers and system users are *jobs*? That's what your
associations would seem to say, unless I'm misreading.
Yes. Though perhaps role is a better choice of word.
Do engineers and system users require different sets of fields in their
On 8 July 2010 08:41, Rajkumar Surabhi li...@ruby-forum.com wrote:
In my application i have 2 tables, 1.logins and 2. credits.
how to mention this in model associtations
You'll find lots of getting started guides online - no sense
rewriting them here:
On 8 July 2010 08:52, Michael Pavling pavl...@gmail.com wrote:
On 8 July 2010 08:41, Rajkumar Surabhi li...@ruby-forum.com wrote:
In my application i have 2 tables, 1.logins and 2. credits.
how to mention this in model associtations
You'll find lots of getting started guides online - no
Marnen Laibow-Koser wrote:
Rob Nichols wrote:
Marnen Laibow-Koser wrote:
Whatever the form tag's action is.
Also, if no action is specified via the form tag, the form is submitted
to the current url.
So if 'thing/edit/1' contained:
form
input type=submit /
/form
The form would
On 8 July 2010 08:50, Henry Oss li...@ruby-forum.com wrote:
Marnen
Thanks for the reply.
Wat...engineers and system users are *jobs*? That's what your
associations would seem to say, unless I'm misreading.
Yes. Though perhaps role is a better choice of word.
Do engineers and
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote:
Marnen Laibow-Koser wrote:
Rob Nichols wrote:
Marnen Laibow-Koser wrote:
Whatever the form tag's action is.
Also, if no action is specified via the form tag, the form is submitted
to the current url.
So if 'thing/edit/1'
RubyonRails_newbie wrote:
ah yes... :-)
It is in the log:
0mSELECT * FROM `blogcomments` ORDER BY created_at desc LIMIT 1
So if it is in the log, why isn't it ordering the comments?
'LIMIT 1' at the end of that SQL query means that only one record is
being returned. Either you haven't
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote:
Marnen Laibow-Koser wrote:
No. form without an action is invalid HTML, so its behavior is
undefined. An action must always be specified.
Thank you for that comment on what should happen. However, the fact
remains that if you
On 7 July 2010 21:59, Robert Walker li...@ruby-forum.com wrote:
RubyonRails_newbie wrote:
def comment
�...@blogcomment = Blogcomment.find(:all, :order = created_at
desc)
I don't understand the point to this. See next comment...
@user = User.find(session[:user_id])
Nor this...
On 8 July 2010 09:09, Colin Law clan...@googlemail.com wrote:
If you
develop a website that does not generate valid html then next week an
update to IE may break the website and your clients/users will not be
happy.
*ahem* one may develop websites with valid html and *this* week, and
find the
Colin
Thanks for your reply.
Colin Law wrote:
So many that I don't want to have redundant fields in a single
table
Why?
Because I oversimplified and there are actually many roles, each with
many attributes. As I understand it STI _is_ an all in one table with a
role (conventionally
On Jul 8, 9:43 am, Colin Law clan...@googlemail.com wrote:
On 8 July 2010 06:16, sigma christoph.thom...@gmail.com wrote:
Hi
Ok, sessions seems to be right, but not what I'm looking for :-)
This parameter is not static, it is dynamic. the whole thing is for a
CMS where the :site-id
Hi All:
Greetings!
We, Talinoz IT Systems, are an Indian based ROR developers group.
We offer the remote ROR team or individual developers to you for a very
minimal cost. Please write back to know more.
Have a very great day!
--
Thanks and regards
Basil Babu
Managing Partner
Talinoz IT
Ahoy Mateys!
ACamp brings you a Camp about your favorite language, framework
and CMS, and brings you in a holiday mood!
The conference takes place in Ghent, Belgium (Europe) on October 29th.
This edition we are having some interesting speakers for you
* Yehuda Katz - Rails core, jQuery
On Jul 7, 5:21 pm, sigma christoph.thom...@gmail.com wrote:
Hi there
Is it possible to pass a parameter automatically to every rails
generated link?
ActionController::default_url_options ?
Fred
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
On Jul 8, 11:48 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 7, 5:21 pm, sigma christoph.thom...@gmail.com wrote:
Hi there
Is it possible to pass a parameter automatically to every rails
generated link?
ActionController::default_url_options ?
Fred
Hi Fred
This is
Hi,
I am looking at using Ruby in an application that, as well as having the
usual database will also need to interface to real-time data using tftp.
Is it possible to do this within RoR?
Where do I start?
Thanks
Adrian
--
You received this message because you are subscribed to
Hi all
I want to create thumbnail for a uploaded image file, I have a
product controller and model with a image field .I want file uploaded
in the image field should have one thumbnail file and also one
general. I have tried a lot by installing plugins for thumbnails but
they are not working
On 8 July 2010 11:21, Adrian Wadey adri...@ssosystems.com wrote:
Hi,
I am looking at using Ruby in an application that, as well as having the
usual database will also need to interface to real-time data using tftp.
Is it possible to do this within RoR?
I don't see why not
Where do I
I'm new to RoR. Would I need to be looking at the Model code to talk to the
real-time stuff or would I need to look deeper into ROR? Just after some
general pointers at this point. Need to spend some time working through
some of the tutorials.
Thanks
Adrian
-Original Message-
From:
Hi all
--
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 group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options,
Try this: http://github.com/datanoise/actionwebservice
I believe they took the original Rails actionwebservice product and
they are keeping at it. I had to work with web services (consuming
them, not providing them) and had lots of problems with the original
Rails version. I still had some
Thank you sir!
On Thu, Jul 8, 2010 at 7:19 PM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 8, 7:20 am, Ali ali.akhtarz...@gmail.com wrote:
Hi, I'm trying to get a captch thing running fromhttp://textcaptcha.com/
which displays an XML file when you trail a key on that URL.
Basil Babu wrote:
Hi All:
Greetings!
We, Talinoz IT Systems, are an Indian based ROR developers group.
We offer the remote ROR team or individual developers to you for a very
minimal cost. Please write back to know more.
Have a very great day!
--
Thanks and regards
Basil Babu
Adrian Wadey wrote:
I'm new to RoR. Would I need to be looking at the Model code to talk to
the
real-time stuff
Probably.
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
Just try paperclip, very simple solution for it.
--
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 group, send email to
catz wrote:
Just try paperclip, very simple solution for it.
+1 for the paperclip recommendation, but you also need some image
processing package installed and available... ImageMagick, or something
similar.
Then it's almost as simple as:
class Image ActiveRecord::Base
has_attachment
On Jul 8, 5:46 pm, Ar Chron li...@ruby-forum.com wrote:
catz wrote:
Just try paperclip, very simple solution for it.
+1 for the paperclip recommendation, but you also need some image
processing package installed and available... ImageMagick, or something
similar.
Then it's almost as
On this and other forums I sometimes get the suggestion Try it.
I have made the comment in forums to the effect that Just because it
works does not mean that it is defined to work.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
which PDF plug-in is support to Asian languages? i tried prawn
PDF::writer both of those dosen't workout for me.
any idea??
-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
On Thu, 2010-07-08 at 10:36 +0530, shyam mohan wrote:
Hi alll...
simmiler question i also want to ask
How to use Rails for android application development...?
Is there any tool for that...like iphone application development?
Not even remotely connected to ruby or ruby on rails
On Wed, Jul 07, 2010 at 11:58:12AM -0700, Sal wrote:
I'm curious to know why Gentoo is a very commonly used distro for the
Rails community. Any reasons for this?
I think you may have been misled. I mostly hear about Ubuntu, though I know
there are lots of deployments on RHEL and CentOS.
--Greg
On 8 July 2010 15:44, Craig White craigwh...@azapple.com wrote:
On Thu, 2010-07-08 at 10:36 +0530, shyam mohan wrote:
How to use Rails for android application development...?
Is there any tool for that...like iphone application development?
Not even remotely connected to ruby or
On 8 July 2010 11:39, Adrian Wadey adri...@ssosystems.com wrote:
I'm new to RoR. Would I need to be looking at the Model code to talk to the
real-time stuff or would I need to look deeper into ROR? Just after some
general pointers at this point. Need to spend some time working through
some
On Thu, Jul 8, 2010 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote:
Or you can use Rhodes/Rhomobile:
http://github.com/rhomobile
I saw their demo at RailsConf last month. It only does the most
simple form/list stuff, and what it draws is really very ugly. Yeah,
you can write your code
I'd recommend starting here...
Episode 141: PayPal Basicshttp://railscasts.com/episodes/141-paypal-basics
Cheers,
Andy
--
Andy Jeffries
http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery
Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS
Company number: 5452840
On 8 July
On 8/7/2010 1:06 PM, shyam mohan wrote:
Hi alll...
simmiler question i also want to ask
How to use Rails for android application development...?
Is there any tool for that...like iphone application development?
rhomobile.
Best Regards,
Mohit.
8/7/2010 | 11:41 PM.
--
You received
On Thu, Jul 8, 2010 at 10:13 AM, Gregory Seidman
gsslist+...@anthropohedron.net wrote:
On Wed, Jul 07, 2010 at 11:58:12AM -0700, Sal wrote:
I'm curious to know why Gentoo is a very commonly used distro for the
Rails community. Any reasons for this?
I think you may have been misled. I mostly
On 8 July 2010 16:35, Greg Donald gdon...@gmail.com wrote:
On Thu, Jul 8, 2010 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote:
Or you can use Rhodes/Rhomobile:
http://github.com/rhomobile
I saw their demo at RailsConf last month. It only does the most
simple form/list stuff, and what
On Jul 8, 4:41 pm, Greg Donald gdon...@gmail.com wrote:
I agree. I've not heard of a single Gentoo + Rails deployment, ever.
I'm sure some exist but no one is really blogging about them or
anything. Linux is 99% the same from distro to distro.. same gcc,
same glibc, same kernel, just
Hi guys,
Given a page that retrieves data from a 3rd party API, how would you
then go about associating additional info in the application's
database with that record?
Specifically, the page displays info on a product, and I'd like to
store and display locally created reviews for that product.
You could do worse than to look at Rhodes which is an open-source
cross-platform tool to allow development if mobile apps in Ruby.You
could then link to a backend app developed with RoR. Supports Android
and iOS amongst others.
On Jul 8, 4:51 am, Nike Mike li...@ruby-forum.com wrote:
How to
nirosh wrote:
which PDF plug-in is support to Asian languages? i tried prawn
PDF::writer both of those dosen't workout for me.
any idea??
Prawn should support UTF-8 text. It wouldn't do font fallback last time
I tried, though, so you need to select a font that actually contains the
hi
i have a Project Task model.
Project model has that additional method:
def self.lasttask(project, sort=DESC)
Task.find(:first, :conditions=['project_id = ? ',
project.id], :order = somedate #{sort} )
end
The Task model has one attribute called specialtask which is
I made a model Picture that is polymorfic but I want to specify
specific :styles for each model that use Picture.
http://pastie.org/1034662
I don't know how to this, I used lambda for this but he doesn't know
the data.instance.picturable on submit. It returns always nil.
My memory is
hi, I've got an api which is using
authenticate_or_request_with_http_basic
What are you guys using to test this? I'm using rspec, and before I
was using rspec-rails, I was using authorize from Rack::Test to do the
authentication. However, authorize clearly doesn't work when using
rspec-rails, so
I had this problem too. After searching all day I found a solution.
On BSD you need to have a converter installed.
/usr/ports/converters/ruby-iconv/
sudo make install clean
However, that did not solve the problem for me until I found this
post:
Just change RUBY_DEFAULT_VER?= in
MattB wrote:
Hi guys,
Given a page that retrieves data from a 3rd party API, how would you
then go about associating additional info in the application's
database with that record?
Specifically, the page displays info on a product, and I'd like to
store and display locally created
What steps are needed to integrate Google Adsense in Ruby on Rails
app? Just copy and paste of adsense code will not work..., hope somene
have done it before..., Regards
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
Ralph Shnelvar wrote:
On this and other forums I sometimes get the suggestion Try it.
I have made the comment in forums to the effect that Just because it
works does not mean that it is defined to work.
That sounds like something I hear at work from time to time...
It is not known not to
On Jul 6, 10:49 pm, Greg Willits li...@ruby-forum.com wrote:
I tried this with no joy:
plugin_folder = #{File.dirname(__FILE__)}
ActionController::Base.view_paths.unshift File.join(plugin_folder,
'views')
How are you trying to use the views in your apps ? If my memory is
correct, setting
What steps are needed to integrate Google Adsense in Ruby on Rails
app? Just copy and paste of adsense code will not work..., hope somene
have done it before..., Regards
Why won't it? It should work just fine...
What error are you getting?
-philip
--
You received this message because you
On Thu, Jul 8, 2010 at 11:59 AM, Ainar Abramovich
youhubcommun...@gmail.com wrote:
What steps are needed to integrate Google Adsense in Ruby on Rails
app? Just copy and paste of adsense code will not work..., hope somene
have done it before..., Regards
Works fine for me, 4 or 5 years now.
--
On Thu, Jul 8, 2010 at 11:03 AM, Frederick Cheung
frederick.che...@gmail.com wrote:
For what it's worth Engineyard use gentoo (but I agree that you hear
far more about people using ubuntu)
Ahh.. that explains why the prices are so high. Their electric bill
must be through the roof from all
On Thu, Jul 8, 2010 at 10:43 AM, Michael Pavling pavl...@gmail.com wrote:
Really? I'm looking at my invoices and beg to disagree.
What's the market:// URL to your app(s)?
--
Greg Donald
destiney.com | gregdonald.com
--
You received this message because you are subscribed to the Google
You might also try using TorqueBox (JRuby) on BSD...
On Thu, Jul 8, 2010 at 12:17 PM, Mrbass21 mrbas...@gmail.com wrote:
I had this problem too. After searching all day I found a solution.
On BSD you need to have a converter installed.
/usr/ports/converters/ruby-iconv/
sudo make install
On 8 July 2010 17:12, tom tomabr...@gmail.com wrote:
hi
i have a Project Task model.
Project model has that additional method:
def self.lasttask(project, sort=DESC)
Task.find(:first, :conditions=['project_id = ? ',
project.id], :order = somedate #{sort} )
end
As a side
hi -
i have a URL of an image (on cloud storage) and I want to send the
file from a request. I do not want to redirect because I want to
conceal the cloud URL. So I want to do something like:
send_file http://www.;
but it cannot find the file:
Cannot read file http://...
but, the url is
OK, I'll try but when I'm running it on my localhost it just displays
blank white area
--
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 group,
OK, I'll try but when I'm running it on my localhost it just displays
blank white area
--
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 group,
OK, I'll try but when I'm running it on my localhost it just displays
blank white area
Isn't the code tied to your website domain? I believe so... since localhost
doesn't match, it doesn't display anything. I don't use adsense enough to be
sure, but check their forums/help. Pretty sure
In a test app, I have a drop-down selection to change the language of
the site.
I use an Ajax request to an action in which the locale is changed, and
the it's redirected to the home page
unfortunately, the locale seems to be changed but the home page
doesn't reflect the new language ..
I'm writing a web app which is used a SaS. Each customer has their own
db and app directory. I have a rake task which creates all necessary
minimum data to run their website: default rights and roles, a
superadmin user, a us_states table already populated, some local
depots and terminals (it's a
On Jul 8, 5:57 pm, Ar Chron li...@ruby-forum.com wrote:
Use the id field for all your rails coding
- the product record and parent id of the child review records, and use
the barcode value to access the external 3rd party API data.
Hi Ar,
That's pretty much how I'd originally structured it
dino d. wrote:
send_file http://www.;
but it cannot find the file:
Cannot read file http://...
but, the url is valid, I can see the file no problem. Is there a way
to send a file from an external source? I want to avoid downloading
the file to my server then resending it to the
thanks for the response. you'll notice i posted in the original
because I want to
conceal the cloud URL
On Jul 8, 3:18 pm, Robert Walker li...@ruby-forum.com wrote:
dino d. wrote:
send_file http://www.;
but it cannot find the file:
Cannot read file http://...
but, the url is
Constantin Gavrilescu wrote:
I have three questions:
1. I don't want to run this MinimumData.populate task before each
scenario because it takes 8 seconds. Should I make it run just once,
globally?
Don't use seed data for running tests. I would highly recommend using a
Factory framework
Hi Adrian,
Have a look at this for some (Ruby) code ideas:
http://pseudo-flaw.net/content/tftpgrab/
After that, it depends what your data looks like, and what you need to
do with it.
Matt.
On Jul 8, 11:21 am, Adrian Wadey adri...@ssosystems.com wrote:
Hi,
I am looking at using Ruby in an
On 8 juil, 14:34, Robert Walker li...@ruby-forum.com wrote:
Constantin Gavrilescu wrote:
I have three questions:
1. I don't want to run this MinimumData.populate task before each
scenario because it takes 8 seconds. Should I make it run just once,
globally?
Don't use seed data for
On BSD you need to have a converter installed.
/usr/ports/converters/ruby-iconv/
Yeah when you install ruby if you look closely you'll see a post install
message that says iconv is a separate port. It should read bigger.
Just change RUBY_DEFAULT_VER?= in /usr/ports/Mk/bsd.ruby.mk from 1.8
I'm trying out globbing for the first time,
I have the route
match '*path' = 'request#dispatch'
defined and a scaffolded request controller with dispatch method and
accompanying scaffolded default view yet I get;
ArgumentError in RequestController#dispatch
wrong number of arguments (2 for 0)
Constantin Gavrilescu wrote:
On 8 juil, 14:34, Robert Walker li...@ruby-forum.com wrote:
can be used to greatly reduce the overhead you're seeing with your seed
data generation technique.
http://github.com/notahat/machinisthttp://github.com/thoughtbot/factory_girl
I was under the
turns out it was the method name 'dispatch' that was causing the
issue.
On Jul 8, 9:25 pm, johnb john.bey...@gmail.com wrote:
I'm trying out globbing for the first time,
I have the route
match '*path' = 'request#dispatch'
defined and a scaffolded request controller with dispatch method
I've found a solution - instead of adding a 'link' column to my
'places' table, I can just use the place id value to create a link in
my js file:
a href='/places/+place.id+'Show more!/a
Hope that sounds okay, it seems to work fine!
On Jul 7, 5:27 pm, Tig sonia.bracegir...@gmail.com wrote:
Hi,
I had a much easier time installing rails on gentoo then ubuntu.
Of course on gentoo you have a lot more control over what's installed
with the price of knowing what to install.
Any distro will do though. I'd suggest looking into rvm as well.
On Jul 7, 2:58 pm, Sal fuente...@gmail.com wrote:
I have a post on stackoverflow which outlines the problem I am having:
http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root
In short, I ported a rails 2.x to rails3 and started getting a
deprecation warning for using
We are assisting a client with their search for a RoR Developer. They
are located in San Mateo, CA and would prefer hiring a full time
resource but would consider a contractor, as well. They are well
funded and offer a competitve salary/equity package.
If you or anyone you know would be
On Jul 8, 8:33 pm, dino d. dinodorr...@yahoo.com wrote:
thanks for the response. you'll notice i posted in the original
because I want to
conceal the cloud URL
send_file can't do that. I suppose you could write a small rails metal
or embedded Sinatra app that streamed the file to them. You
I'm looking to start a discussion on how to find good Ruby on Rails
Developers. Can anyone lead me in the right direction?
Ruben Zaragoza
--
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
I Work rails on my beauty Gentoo System, i find hard install rails over
Ubuntu because you need know each package to install :-(, on Gentoo is easy.
On Thu, Jul 8, 2010 at 4:25 PM, Agoofin thebserv...@gmail.com wrote:
I had a much easier time installing rails on gentoo then ubuntu.
Of
I'm looking to start a discussion on how to find good Ruby on Rails
Developers. Can anyone lead me in the right direction?
- Look at their code (github, etc.).
- Look at their contributions on mailing lists, blogs, talks, presentations,
etc.
- Talk to their references!!! Sure, references are
Hi Colin,
Have a look at the Rails Guide on routing.
Good idea. I'm still stuck on that.issue. Thanks.
Best wishes,
Richard
On Jul 6, 3:20 am, Colin Law clan...@googlemail.com wrote:
On 6 July 2010 05:39, RichardOnRails
richarddummymailbox58...@uscomputergurus.com wrote:
Hey Niels,
Hi,
I have a question regarding the best way to do the following:
Given I have a Parent model that has many Child models, and the show
page for the parent model allows the user to create a new Child, which
is preferable?
A) % form_for(@child, :parent_id = @parent.id) do |f| %
f.text_field
Excellent Ulises.
Thanks for this listing.
I think this will be helpful to everyone.
Ulises Ramirez-Roche wrote:
The .gitignore file should be created in the root directory of your
rails
project. It tells git which files to ignore when looking at files to
commit,
for whatever reason. So
I come from a db world.
Can someone interpret this please, self.questions.reject{|q|
q.nil?}.all
I'm overwhelmed by the syntax in the second line,
self.questions.reject{|q| q.nil?}.all
def needed_questions
self.questions.reject{|q| q.nil?}.all
end
something like that.
i can somewhat
Thanks Matt.
I see a lot of named_scope question.
I have just started with rails and have created a few paages manually
without scaffolding, but producing the same results.
That is where i stand with rails.
I am not clear on the named_scope.
Sorry for this silly question.
What is this
If I understand you question, the first. The second puts unnecerssary
hidden field on the form and the form helper already has the I'd
embeded. Only reason you would want the hidden field is if you needed
it perhaps for ajax/js purposes.
On 7/8/10, Bob Nadler bnad...@comcast.net wrote:
Hi,
I
Frederick Cheung wrote:
I believe these days that if you plugin contains a folder called app,
itself containing a folder called views then that will be added to the
view paths automatically
That worked. I went back and tried the unshift thing too, this time with
a path that mirrored
Hui all, i am trying to implement sphinx search (on Windows Xp)
engine in my app. nut it fails in the several point i don't know the
actual procedure .
Can anyone help me on this to implement sphinx-search (on Windows
Xp). or any good tutorails you please inform me
thanks in advance.
--
You
RailsFan Radha wrote:
I come from a db world.
Can someone interpret this please, self.questions.reject{|q|
q.nil?}.all
I'm overwhelmed by the syntax in the second line,
self.questions.reject{|q| q.nil?}.all
Go look up the relevant functions (especially reject) in the
documentation.
99 matches
Mail list logo