Your controller is using this method to load results on your index page,
whether or not any search was performed. So it's perfectly reasonable for the
empty search to return all results.
def self.search(search)
if search
find(:all, :conditions=>['name LIKE ?', "%#{search}%"])
else
On Fri, Jul 6, 2012 at 1:52 PM, sehrguey o. wrote:
> happy moments are too short...
>
> the search form worked and still works but it has a major flaw - when
> the text_field_tag is left blank then all the db raws pop up on hitting
> submit button.
> How to prevent it?
>
> I tried to substitute
Hi, guys. I created a new a Rails 3 program to test tinymce with
tinymce_hammer gem. I was able to save bold font, bulleted-list format,
etc in the database and display it on the page except the "insert link".
On the edit page, I could insert the link to the highlighted text and
even open the link
Hi,
I'm not using the back button , but refreshing the browser to see the
updated list. I'm using Safari browser. Tried with a chrome too(from a
windows machine, ofcourse my rails server is still running on my mac
machine) and i see the same result.
--
Posted via http://www.ruby-forum.com/.
On 6 July 2012 20:33, cyber c. wrote:
>>It is a bit suspicious that you have 3.2.6 of only some of these. I
> should have asked you to post Gemfile and Gemfile.lock too.
>
> Gemfile.lock
>
> GEM
> remote: https://rubygems.org/
> specs:
> actionmailer (3.2.4)
> actionpack (= 3.2.4)
>
>It is a bit suspicious that you have 3.2.6 of only some of these. I
should have asked you to post Gemfile and Gemfile.lock too.
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.4)
actionpack (= 3.2.4)
mail (~> 2.4.4)
actionpack (3.2.4)
active
On 6 July 2012 17:58, cyber c. wrote:
> Hi Colin,
>
>
>>Here we /do/ see the sql fetching the records. Very odd. There must
>>be something going wrong with the caching. Have you changed anything
>>in the the config directory other than database.yml and routes.rb?
>>Specifically environment.rb o
happy moments are too short...
the search form worked and still works but it has a major flaw - when
the text_field_tag is left blank then all the db raws pop up on hitting
submit button.
How to prevent it?
I tried to substitute 'if (search.present?)' for just 'if search' in
disk.rb (the goog
Hi Colin,
>Here we /do/ see the sql fetching the records. Very odd. There must
>be something going wrong with the caching. Have you changed anything
>in the the config directory other than database.yml and routes.rb?
>Specifically environment.rb or anything in config/environments? Are
>you in
May I have a little screenshot resuming your description? it's difficult to
answer :D
Sorry ;)
2012/7/6 ☈king
> Hi guys!
>
> I'm trying to help out our frontend guy by making a page a single page
> that contains every kind of situation our site uses. So there should be a
> header, a nav in a fe
Hi guys!
I'm trying to help out our frontend guy by making a page a single page that
contains every kind of situation our site uses. So there should be a
header, a nav in a few various states, a new form, a form with errors, etc.
Then I also want to figure out some way to show what it will lo
Hi everyone.
I've been using spork+guard+rspec with great happiness in my latest
projects, but yesterday I came across to a wired bug I can't really
understand and where I've spent the whole morning trying to figure out
what was going wrong.
Let me explain. I've making unit test to my models. Whe
On Thursday, July 5, 2012 2:25:48 PM UTC-4, Gurdipe Dosanjh wrote:
>
> Hi All,
>
> I have just started to support a rails application and during the day I
> have to restart the apache proxy becuase I get proxy errors.
>
> Is there any good guides I can look at that will help my understand apache
I think you missed the "generate" or "g" command in line 3. Shouldn't it
read:
3> rails generate scaffold User name:string
Thanks.
-- Clint
*Clint Laskowski, CISSP, CISM*
email: clint.laskow...@gmail.com
blog: http://www.tek414.com << new!
project: http://Signup.StartupWeekendMilwaukee.org <<
On Friday, July 6, 2012 4:07:11 AM UTC-4, Colin Law wrote:
>
> On 5 July 2012 23:29, cyber c. wrote:
> >>Now run the app, bring up the index and note the count shown (what is
> >>it and how many records do you see), add a record and then show the
> >>index again. Does the count change? Post
Hello Louis,
Just to add to Fred's good advice, specifically the paragraph on "disaster
recovery plans"...
I realize this might sound like extreme advise but it's based on experience
deploying complex systems to various government agencies. I would suggest
that you need 3 sets of your product
delayed_jobs? I don't know about it. Is it a method?
06 юли 2012, петък, 13:16:43 UTC+3, Tsvetelina Borisova написа:
>
> Hello, I am testing for email sending from my app and I have a scenario
> that passes in test env but not in production. When I make dump of
> ActionMailer::Base.deliveries I
On 6 July 2012 12:36, harshad wrote:
> I solved my issue...
>
> <%= link_to "#{t('filter')}".html_safe, "",:class => "signin"
> %>
I think content_tag would be cleaner and would remove the need for html_safe
Colin
>
>
>
> On Friday, July 6, 2012 4:56:24 PM UTC+5:30, Colin Law wrote:
>>
>> On 6
I solved my issue...
<%= link_to "#{t('filter')}".html_safe, "",:class => "signin"
%>
On Friday, July 6, 2012 4:56:24 PM UTC+5:30, Colin Law wrote:
>
> On 6 July 2012 12:18, harshad wrote:
> > Hi,
> >
> > I have a issue in display HTML in link_to tag.
> >
> > Issue: Filter
> >
> > Above
On 6 July 2012 12:18, harshad wrote:
> Hi,
>
> I have a issue in display HTML in link_to tag.
>
> Issue: Filter
>
> Above HTML tag i want to convert into Rails 3 syntax.but how?
googling for
rails link_to span
yields numerous hits.
Colin
>
> Any one have a answer. Please send me asap.
>
> T
Hi,
I have a issue in display HTML in link_to tag.
Issue: Filter
Above HTML tag i want to convert into Rails 3 syntax.but how?
Any one have a answer. Please send me asap.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
Did you try wo using delayed_jobs ? I remember having similar issue w
it ...
On 6 juil, 12:16, Tsvetelina Borisova wrote:
> Hello, I am testing for email sending from my app and I have a scenario
> that passes in test env but not in production. When I make dump of
> ActionMailer::Base.deliveries
Hello, I am testing for email sending from my app and I have a scenario
that passes in test env but not in production. When I make dump of
ActionMailer::Base.deliveries I saw that it returns array with duplicated
elements in production env but not in test env. I am using sqlite3 for test
env an
On Jul 5, 6:32 pm, Louis Davin wrote:
> Hello there,
>
> I have been working in a startup for a few weeks now, and I am responsible
> for setting up the production environment and for "strengthening" the
> product (a rails app).
> By the way I've started reading "Deploying rails" from pragprog.
>
On 5 July 2012 23:29, cyber c. wrote:
>>Now run the app, bring up the index and note the count shown (what is
>>it and how many records do you see), add a record and then show the
>>index again. Does the count change? Post the log for that complete
>>cycle.
>
>
> The count shown is old , doesnt
25 matches
Mail list logo